When ax starts Kernel Creates an instance of Info class .
Info contains StartupPost() method used to execute the code every time ax starts.
Following example opens InventTable Form automatically when you start ax.
void startupPost()
{
SysSetupFormRun formRun;
Args args = new Args();
;
args.name(formstr(InventTable));
formRun = classfactory::formRunClassOnClient(args);
formRun.init();
formRun.run();
formRun.detach();
}
So if you have any task that has to be executed every time ax start , then this is the best place to put your code.
Info contains StartupPost() method used to execute the code every time ax starts.
Following example opens InventTable Form automatically when you start ax.
void startupPost()
{
SysSetupFormRun formRun;
Args args = new Args();
;
args.name(formstr(InventTable));
formRun = classfactory::formRunClassOnClient(args);
formRun.init();
formRun.run();
formRun.detach();
}
So if you have any task that has to be executed every time ax start , then this is the best place to put your code.
Aucun commentaire:
Enregistrer un commentaire