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.
Source : http://learnax.blogspot.in/search?updated-min=2010-01-01T00:00:00-08:00&updated-max=2011-01-01T00:00:00-08:00&max-results=50
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.
Source : http://learnax.blogspot.in/search?updated-min=2010-01-01T00:00:00-08:00&updated-max=2011-01-01T00:00:00-08:00&max-results=50
No comments:
Post a Comment