Hi all experts,
How to open a form from a job…Actually, i am trying run a job and it should directly open the form LedgerJournaltable…Howe to do that…Plz help…
Hi all experts,
How to open a form from a job…Actually, i am trying run a job and it should directly open the form LedgerJournaltable…Howe to do that…Plz help…
Hi.
static void Job10(Args _args)
{
Args args = new Args();
MenuFunction menuFunction;
;
menuFunction = new MenuFunction(menuitemdisplaystr(SalesTable), MenuItemType::Display);
menuFunction.run(args);
}
Thanks for the quick reply…I will check this out and reply you my friend…
Hello,
You can directly run the Display MenuItem “LedgerJournalTable” as shown below:
static void Job1(Args _args)
{
MenuFunction menuFunction = new MenuFunction (menuItemDisplaystr(LedgerJournalTable), MenuItemType::Display);
;
menuFunction.run();
}
OR
Instead of running a menu item if you want to open a form then you can do it as shown in the below code:
static void Job1(Args _args)
{
Args args;
FormRun formRun;
;
args = new args(formstr(LedgerJournalTable));
formRun = classFactory.formRunClass(args);
formRun.init();
formRun.run();
formRun.detach();
}
Hello Shankar and Amin,
My hearty thanks as that works…