Hi Isomorphic,
please have a look at this modified testcase (v11.1p_2018-01-07), where I think that all columns should have validation errors.
The SKU column now needs to be like a Zipcode and In Stock is required. Both conditions are not met, IMHO.
It is possible that I made an error in JS here, but I don't think so.
I made the testcase because in my application I have a problem with required boolean fields (like here "In Stock"), which do not accommodate space for the the validation-error icon when autofitting.
I think this should happen as well in the testcase, once the validation error is being shown.
BatchUploader modification:
Best regards
Blama
please have a look at this modified testcase (v11.1p_2018-01-07), where I think that all columns should have validation errors.
The SKU column now needs to be like a Zipcode and In Stock is required. Both conditions are not met, IMHO.
It is possible that I made an error in JS here, but I don't think so.
I made the testcase because in my application I have a problem with required boolean fields (like here "In Stock"), which do not accommodate space for the the validation-error icon when autofitting.
I think this should happen as well in the testcase, once the validation error is being shown.
BatchUploader modification:
Code:
isc.BatchUploader.create({ ID:"uploader", height: 400, width: "100%", uploadDataSource: supplyItemCustom, // BatchUploader supports extra fields, which are uploaded along with the file // data and can be accessed from the HttpSession on the server side; here we // define some fields to be used in this way uploadFormFields: [ { name: "stringValue", title: "String Value", type: "text", wrapTitle: false }, { name: "numericValue", title: "Numeric Value", type: "number", wrapTitle: false } ], // We have limited vertical screen space when running in the Feature Explorer, // so we force the embedded grid to be quite short in an attempt to avoid // the need for page scrolling gridProperties: { height: 200, [B] autoFitWidthApproach: "both",[/B] }, [B] gridFields: [{ name: "itemID" }, { name: "itemName" }, { name: "SKU", validators:[ {type:"regexp", expression:"^\\d{5}(-\\d{4})?$", errorMessage:"Zip Codes should be in the format ##### or #####-####."} ] }, { name: "description" }, { name: "category" }, { name: "units" }, { name: "unitCost" }, { name: "inStock", required: true, title: "Foobar" }, { name: "nextShipment" }][/B] });
Blama
Comment