Hi all,
I am using AX2009 and I am trying to display other company's data in current company, I use the setDefaultCompany method to change company and open the form, but it didn't work well, it cannot show the destination company's data.
The current company is "XYZ", I want to show "ABC" company's data, The code like:
Args parameters = new Args();
FormRun formR;
;
appl.setDefaultCompany("ABC", false);
parameters.caller(element);
parameters.record(_record);
formR = new MenuFunction(menuItemDisplayStr(LedgerJournalTable3), MenuItemType::Display).create(parameters);
formR.run();
formR.wait(true);
appl.setDefaultCompany("XYZ", false);
I appreciate you can show me what's wrong, the settings, coding or others?
Thanks and Regards,
Tat