Get caller form name from current form:
FormRun formRun;formRun= element.args().caller();
info(strFmt('%1',formRun.args().name()));
//to perform actions on current form datasource based on the caller form name
if(formRun.args().name() == formStr("CallerFormName"))
{
currentForm_ds.allowCreate(false);
currentForm_ds allowDelete(false);
}
Get value from caller form
Object callerObject;
if (args.caller() && formHasMethod(args.caller(), identifierstr()))
{
callerObject= args.caller();
callerObject. ();
}
No comments:
Post a Comment