【问题标题】:How can I execute custom code when the AOT Service Starts on the Server in MS Dynamics AX?当 AOT 服务在 MS Dynamics AX 中的服务器上启动时,如何执行自定义代码?
【发布时间】:2009-08-03 09:57:51
【问题描述】:

DAX 重新启动后,我需要关闭某些批处理作业。我怎样才能做到这一点?

作者注:这很可能是 X++ 编程问题,不可配置。

【问题讨论】:

    标签: axapta x++


    【解决方案1】:

    在Application.startupPost()中添加您的说明:

    if (new Session().clientKind() == ClientType::Server)
    {
       this.fuzzyTheBatchJobs();
    }
    

    【讨论】:

    • 我自己没有这个,只是在ClientType::Client的上下文中。
    • 另一个地方可能是SysStartupCmdBatchRun.infoRun(),如果您使用命令行选项 -startcmd=Batch 启动批处理,则会执行该位置。
    猜你喜欢
    • 2022-06-29
    • 1970-01-01
    • 2013-08-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-04-21
    • 2013-04-02
    • 1970-01-01
    相关资源
    最近更新 更多