AX_Args

时间:2024-09-16 21:38:02
Args            args;
FormRun formRun;
;
args = new Args();
args.name(formstr(FormName));
args.caller();
args.record();
formRun = classfactory.formRunClass(args);
formRun.init();
formRun.run();
formRun.dataSource().findRecord(common);
formRun.wait(); localSalesLine = element.args().record();
localSalesLine.ItemId = ctrlItemId.valueStr();
localSalesLine.dataSource().object(fieldNum(SalesLine, ItemId)).modified(); if (_args && _args.dataset() == bomCosTGroup.TableId)
{
if (_args.record().isFormDataSource())
{
formDataSource = _args.record().dataSource();
for(caller = formDataSource.getFirst(true) ? formDataSource.getFirst(true): _args.record();
caller;
caller = formDataSource.getNext())
{
info(caller.CostGroupId);
info("test");
}
}
}t. Args args = new Args();
;
args.record(wmsShipment);
args.caller(element);
args.parmObject(wmsShipmentOption);
new MenuFunction(menuitemactionstr(SalesFormLetter_PackingSlip), MenuItemType::Action).run(args);

相关文章