Forum Post: RE: How to override procedure updateRecord in ADM2?

  • Thread starter Thread starter PeterWokke
  • Start date Start date
Status
Not open for further replies.
P

PeterWokke

Guest
For the dataAvailable I can give you an example. Add a new procedure in the smartWindow named dataAvailable. This procedure needs and input parameter DEFINE INPUT PARAMETER pcRelative AS CHARACTER NO-UNDO. Use the function validDataAvailable on the view object (smartview or smartbrowser to limit the number of times the procedure is triggered ( by initialization, the dataoject and the view object. You prefer to run your code each time it come available in your view object. IF DYNAMIC-FUNCTION('validDataAvailable':U IN h_vo_harvest-settlement, INPUT pcRelative) THEN DO: END.. In the initializeObject you subcribe to the smart data object. Or in the PostCreateObjects if the object is linked to pages. SUBSCRIBE TO 'dataAvailable':U IN h_do_harvest-settlement. This is the basic structure for dataAvailable. Regards, Peter

Continue reading...
 
Status
Not open for further replies.
Back
Top