Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

ServerObject Custom Validators

$
0
0
Hello All,

Regarding the ServerObject Custom Validators,

I have simple ListGrid with some custom validators in the datasource XML file, I noticed that the condition method in the validator class was called many times while I am editing the grid even if am not changing the values of any field in the grid.

Based on the example of the attached files, if the value of the warehouse field is empty in the grid then after editing that row the condition method of the validator class is getting called 3 times (one time for the each of the following fields II0_DOC_HEADER, II0_DOC_DESCRIPTION, II0_ISSUE_DEPARTMENT) though these fields were not touched in the grid.

My understanding that the validator describes a check that should be performed on a value the user is trying to save, but in my case I can see many validation are going on even if there are no save operations

Waiting your feedback

Version : SmartClient_v90p_2014-03-07_PowerEdition

Attached Files
File Type: xml CUSTODY_RETURN_MAIN.ds.xml (1.8 KB)
File Type: java CustodyReturnMainValidatorDMI.java (1.3 KB)
File Type: txt depug.txt (2.8 KB)
File Type: jsp Item.jsp (934 Bytes)

Viewing all articles
Browse latest Browse all 4756

Trending Articles