Monday, February 16, 2015

Passing parameters to another form and open it in Edit mode

Below code can be used to pass one parameter from one form to another and open that form in Edit mode.

Args            args;
str             defaultFormOnTable;
MenuFunction    menuFunction;

args = new Args();
args.record(CustTable::find(‘test account’));

menuFunction = new MenuFunction(menuitemDisplayStr(CustTable), MenuItemType::Display);

   formRun = menuFunction.create(args);
   if(formRun)    ;     

In this example I opened customers form in Edit mode by passing customer account 'test account'as a parameter.

1 comment:

I will appreciate your comments !