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!
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!
Comment