AX Form 参数传递
主Form 点击按钮弹出子Form 用于选择Employee.
1. Main Form:
void clicked()
{
Args args;
Object formRun;
ABCPickListBatch pickList;
;
super();
args = new Args();
args.name(formstr(ABCEmpSelect));
formRun = classfactory.formRunClass(args);
formRun.init();
formRun.run();
formRun.wait();
if (formRun.closedOK())
{
info(formRun.curEmplId()); //Get Current selected employID;
/*
ttsbegin;
while select tmpFrmVirtual
{
select forupdate pickList
where tmpFrmVirtual.RecordNo == pickList.RecId &&
tmpFrmVirtual.TableNum == pickList.TableId;
pickList.UserId = formRun.curEmplId();
pickList.update();
}
ttscommit;
ABCPickListBatch_ds.executeQuery();
delete_from tmpFrmVirtual;
*/
}
}
2. Child Form: EmploySelect
public EmplId curEmplId()
{
return Employee.EmplId;
}
浙公网安备 33010602011771号