Hi everyone.
I created a form to inquiry simple data using inmemory type table.
and it working well when I open the form directly.(open the form from AOT or menuitem)
but when I call the form from Job or another form, inquiry is not working.
please help me if you have an idea.
Open the form code :
static void Job39(Args _args)
{
Args args;
FormRun formRun;
args = new Args();
args.record(WMSPickingRoute::find('XXX'));
args.name("Formname");
formRun = new formRun(args);
formRun.run();
formRun.wait();
}
Inquiry data code to set datasource :
public void fetchData()
{
IF_BarcodeProcessTMP tempTable;
IF_BarcodeProcessHelper barcodeProcess = new IF_BarcodeProcessHelper();
tempTable = barcodeProcess.fetchIFBarcode(InventTransType::WMSOrder, ScanId.valueStr()
IF_BarcodeProcessTMP.setTmpData(tempTable));
IF_BarcodeProcessTMP_DS.research();
}
and this code to open form same issue.. :
new MenuFunction(menuitemDisplayStr(IF_PickingList), MenuItemType::Display).run(args);
When I debug to check returned tempTable, data is correct..
Why it's not work open from another caller..??
is there another way to set datasource for inmemory table???