Hi there,
In a server-side DataSource descriptor (.ds.xml file) I can successfully specify criteriaFields for an ISUNIQUE ValidatorType.
However, I need to be able to dynamically switch between different criteriaFields from the client side, but I cannot find any client side api to set the criteriaFields property on a Validator:
In a server-side DataSource descriptor (.ds.xml file) I can successfully specify criteriaFields for an ISUNIQUE ValidatorType.
However, I need to be able to dynamically switch between different criteriaFields from the client side, but I cannot find any client side api to set the criteriaFields property on a Validator:
Code:
ListGridField listGridField = new ListGridField("Name");
Validator validator = new Validator();
validator.setType(ValidatorType.ISUNIQUE);
// HOW TO SET criteriaFields ???
listGridField.setValidators(validator);
Comment