Hi,
i'm trying to call the OriginalDocuments form from another form's button (inside clicked method). It should work the same way we could see in the LedgerTransAccount form. The only difference i can spot, is that i'm calling it via X++.
The args object contains a LedgerTrans record, which should be the only information required to do so. But when i call it by clicking my Button, i have zero records in the form.
The call is made this way (inside the clicked method of my button):
args = new Args();
args.record(myLedgerTransRecord);
args.caller(this);
new MenuFunction(menuItemDisplayStr(OriginalDocuments), MenuItemType::Display).run(args);
Any suggestions about what could be wrong with this?
Thank you in advance
regards
*This post is locked for comments