Sunday, December 4, 2011

How to capture the modified field in runbasebatch

Hi,

RunBase.dialogSelectCtrl Method
 
When using the dialog class for dialog, this method is called whenever a control is selected. 
 
To enable this callback, the allowUpdateOnSelectCtrl method must have been set true.
 
You have to add to the dialog() method, after the super's call add the line

dialog.allowUpdateOnSelectCtrl(true);

and then each time a dialog method is entered the method dialogSelectCtrl() is executed, you can control there the modified
field.

If you have any doubt about the behaviour have a look at the class BOMHierarchyCheckJob.
 
Hope it helps.
 
Regards,
/Ashlesh 

No comments:

Post a Comment