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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 28.10.2006, 16:47   #1  
Blog bot is offline
Blog bot
Участник
 
25,459 / 846 (79) +++++++
Регистрация: 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();


Источник: http://DynamicsAndMore.spaces.live.c...4CB0!305.entry
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
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
Inside Dynamics AX 4.0: Usage Scenarios Blog bot DAX Blogs 0 04.10.2007 05:15
axaptabuilder: How to make Dynamics AX interface more user friendly with Tabax? Blog bot DAX Blogs 0 12.04.2007 16:10
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, время: 09:20.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.