SmartClient Version: SC_SNAPSHOT-2011-02-19/PowerEdition Deployment (built 2011-02-19)
Browser: Firefox 3.5.3
I have setup a relatively simple DMI validator on a ListGridField and I'm experiencing an issue that I'm hoping I can get some help with.
After entering data and exiting the ListGridField or the ListGrid row for the first time, the DMI validates and flags any errors successfully.
If I now go back into the same field and exit, the DMI validator does not fire and the flagged error is dropped upon exiting the field regardless of whether the field value was changed.
The next time I go into the field, and exit, the DMI validator is called and any errors are flagged.
This pattern of alternating calls to the validator continues, and is the issue I'm experiencing.
Here is the code I am using. Any thoughts on why this is happening would be greatly appreciated.
Field Definition
ListGridField Definition
Thanks
Browser: Firefox 3.5.3
I have setup a relatively simple DMI validator on a ListGridField and I'm experiencing an issue that I'm hoping I can get some help with.
After entering data and exiting the ListGridField or the ListGrid row for the first time, the DMI validates and flags any errors successfully.
If I now go back into the same field and exit, the DMI validator does not fire and the flagged error is dropped upon exiting the field regardless of whether the field value was changed.
The next time I go into the field, and exit, the DMI validator is called and any errors are flagged.
This pattern of alternating calls to the validator continues, and is the issue I'm experiencing.
Here is the code I am using. Any thoughts on why this is happening would be greatly appreciated.
Field Definition
Code:
<field name="packCompItemNumber" title="Component Item Number" type="text" width="180" primaryKey="true" canEdit="true" customSQL="true"> <validators> <validator type="serverCustom"> <serverObject lookupStyle="new" className="com.islandpacific.gui.server.customDataSource.PackComponentValidator"/> <errorMessage>$ErrorMessage</errorMessage> </validator> </validators> </field>
Code:
FormItem componentItemNumberTemplate = new FormItem(); componentItemNumberTemplate.setValidateOnExit(true); ListGridField componentItemNumber = new ListGridField(PACK_COMPONENT_ITEM_NUMBER); componentItemNumber.setRequired(true); componentItemNumber.setEditorType(componentItemNumberTemplate);
Comment