In one of the parameters screen I have added three new check boxes say A, B and C. If A is checked then either B or C field should be checked. For this I have overridden the validateWrite method of the datasource. The validation doesn’t work when record is not saved.
Step 1: Check A and B. Record gets saved.
Step 2: Check A, uncheck B and save record. Validation is done and error is displayed.
Step 3: Close the form. Ax asks whether to save the record. If No then the record is saved with B unchecked.
In step 3, the record should be saved with ‘B’ checked (because B was checked before saving) . How to imply this ?