AXForum  
Go Back   AXForum > Microsoft Dynamics AX > DAX Blogs
All
Forgotten Your Password?
Register Forum Rules FAQ Members List Today's Posts Search

 
 
Thread Tools Search this Thread Display Modes
Old 28.10.2006, 16:47   #1  
Blog bot is offline
Blog bot
Участник
 
25,644 / 848 (80) +++++++
Join Date: 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
 

Similar Threads
Thread Thread Starter Forum Replies Last Post
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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Рейтинг@Mail.ru
All times are GMT +3. The time now is 01:49.
Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Contacts E-mail, Advertising.