Search This Blog

Wednesday, August 24, 2011

When AX Starts Open the Form/report

When ever the AX Starts internally AX Kernel will creates an instance of the Info class
Info Class contains one method as startupPost().
This method used to execute the code every time AX starts.

Following Sample used to open the Item Details form whenever AX Starts

void startupPost()
{
    SysSetupFormRun formRun;
    Args args = new Args();
    ;

   args.name(formstr(InventTable));
   formRun = classfactory::formRunClassOnClient(args);
   formRun.init();
   formRun.run();
   formRun.detach();
}

No comments:

Post a Comment

Thanks for visiting my blog,
I will reply for your comment within 48 hours.

Thanks,
krishna.