Показать сообщение отдельно
Старый 09.10.2012, 17:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,646 / 848 (80) +++++++
Регистрация: 28.10.2006
ax-erp: Dynamics Ax creating a batch job from code
Источник: http://microsoft-dynamics-ax-erp.blo...from-code.html
==============


Hi,
Here is a simple code snippet to create Batch jobs from code. This convenient when starting a heavy load job from a user interface and still keep the client responsive.
TSTSalesOrderUpdate tSTSalesOrderUpdate;

BatchInfo batchInfo;
BatchHeader batchHeader;
;

tSTSalesOrderUpdate = TSTSalesOrderUpdate::construct();

batchInfo = tSTSalesOrderUpdate.batchInfo();
batchInfo.parmCaption("Test from code");
batchInfo.parmGroupId("");

batchHeader = BatchHeader::construct();
batchHeader.addTask(tSTSalesOrderUpdate);
batchHeader.save();






Источник: http://microsoft-dynamics-ax-erp.blo...from-code.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.