Dear Experts,
I'm a junior developer of Microsoft Dynamic AX 2012 R3
I try to call or open form LedgerJournalTransDaily (General Journal Line Form) through code
Here is my code
Args args;
Object formRun,subFormRun;
args = new Args(formstr(LedgerJournalTable));
args.record(LedgerJournalTable::find('GL-000703'));
formRun = classFactory.formRunClass(args);
formRun.init();
formRun.run();
args = new Args(formstr(LedgerJournalTransDaily));
args.caller(formRun);
args.record(LedgerJournalTable::find('GL-000703'));
subFormRun = classfactory.formRunClass(args);
subFormRun.init();
subFormRun.run();
formRun.close();
subFormRun.wait();
The Form is opened but get some error
1. The Form doesn't calculate total
2. Show error RecordSortedList object not initialized.
Is there any parameter missing?
Please your advice
Thank in advance
Best Regards,
Bintang
*This post is locked for comments
I have the same question (0)

Report
All responses (
Answers (