tags:

views:

69

answers:

1

I need to switch off certain some batch jobs when DAX has been restarted. How can I accomplish this?

Note from Author: This is most likely a X++ programming question and not configurable.

+1  A: 

Add your instructions in Application.startupPost():

if (new Session().clientKind() == ClientType::Server)
{
   this.fuzzyTheBatchJobs();
}
Jan B. Kjeldsen
I have not this myself, only in the context of ClientType::Client.
Jan B. Kjeldsen
Another place could be `SysStartupCmdBatchRun.infoRun()` which is executed if you start your batch with a command line option -startcmd=Batch.
Jan B. Kjeldsen
Thanks very much for this - I will give it a try.
mm2010