Announcement
Collapse
No announcement yet.
X
-
Please read the documentation for validate(). It will return true if local validation succeeds, you need to provide a callback if you want to know whether server-based validation (such as isUnique) succeeds.
-
Bug in DynamicForm.validate validator type="isUnique"
I found a bug in validation at DynamicForm validate() method.
NightBuild: builds/SmartGWT/12.0p/EnterpriseEval 2020-01-04
At DataSource:
<field name="STYLE_NAME" length="50" type="text" required="true" >
<validators> <validator type="isUnique"/> </validators>
</field>
TextItem nameItem = new TextItem("STYLE_NAME");
SC.say("validate:" + form.validate());
When I run form.validate() , it return true. However, the value is already exist in db and the form is actually showing error!Tags: None
Leave a comment: