AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 04.05.2009, 14:05   #1  
Blog bot is offline
Blog bot
Участник
 
25,643 / 848 (80) +++++++
Регистрация: 28.10.2006
MS Dynamics Ax and More: How to start a specific Batch Group during Startup
Источник: http://dynamicsandmore.spaces.live.c...4CB0!305.entry
==============
Right now it is not possible to start a specific batch group with a startup command. You certainly can start the batch processing, but within the standard applications it is not possible to start one or more specific batch groups. The problem is caused by a missing parameter within the "SysStartupCmdBatchRun" class.
 
Now we add a new method to this class:
 
container CMHParmInCont()
{
    container   conParm;
    int         i, j;
    str         parmString;
    ;
    conparm = conNull();

    for (i = 1; i 0)
        {
            parmString = substr(parm, i, j-i);
        }
        else
        {
            parmString = substr(parm, i, strlen(parm) -i +1);
            j = i + strlen(parmString);
        }

        conParm += parmString;
    }
    return  conParm;
}

 
This method extracts the given batchgroupids from the startup command.
 
The second and last step is to modify the existing infoRun() method in a way that it starts the different batch jobs:
 
void infoRun()
{
    batchRun        batchRun = new batchRun();
    BatchGroupId    groupId;
    container       conParm;
    int             i;
    ;
    batchRun.parmUseForm(true);

    if (parm)
    {
        parm    = strrem(parm, ' ');
        conParm = this.KBSParmInCont();

<div><font face="Courier New, Courier, Monospace">        for (i = 1; i
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
axStart: Microsoft Dynamics AX 2009 Hot Topics Web Seminar Series Blog bot DAX Blogs 0 06.08.2008 12:05
Inside Dynamics AX 4.0: The Security Framework Blog bot DAX Blogs 0 31.10.2007 11:40
axaptabuilder: How to make Dynamics AX interface more user friendly with Tabax? Blog bot DAX Blogs 0 12.04.2007 16:10
MS Dynamics Ax and More: How to start a specific Batch Group during Startup Blog bot DAX Blogs 0 28.10.2006 16:47
axaptabuilder: How to make Dynamics AX interface more user friendly with Tabax? Blog bot DAX Blogs 0 28.10.2006 16:47

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 01:26.