Wednesday, April 16, 2014

Understanding and Using Args





  • Args class is used to pass arguments between objects like name, caller and parameters
  • Caller ()  will set the instance of object and will get (return) the instance of object which created the Args class object
  • To check whether the calling object (form) contains the table ‘abc' then use below code validation. So here the args will hold the record buffer of the caller(calling object). 
If (element.args().dataset == tablenum(abc)).
        

  •  To initialize the record to the table buffer 'abc' use.
Abc = element.args().record();

  • After using the above table. In continuation to get the handle of the caller data source use below code.
formDataSource = element.args().record();    or      abc.datasource();

No comments:

Post a Comment