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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 04.07.2013, 01:19   #1  
Blog bot is offline
Blog bot
Участник
 
25,486 / 846 (79) +++++++
Регистрация: 28.10.2006
emeadaxsupport: How to enable “Conditions” for Retail jobs in AX 2012 R2
Источник: http://blogs.msdn.com/b/axsupport/ar...x-2012-r2.aspx
==============

TITLE:

How to enable “Conditions” for Retail jobs in AX 2012 R2



DESCRIPTION:

We want to enable the possibility to schedule the Retail jobs (A-Jobs, N-Jobs or P-Jobs),
so they are running after each other. In this example it will be the A-jobs (A-1000 and A-1010)


  • First we need to add the code enabling the class to be selected in the batch setup

\Classes\RetailConnScheduleRunner\classDeclaration

///

/// Batch job to run the specified schedule

///

///MS START

[SysOperationJournaledParametersAttribute(true)]

///MS END

class RetailConnScheduleRunner extends
RunBaseBatch

{

RetailConnSchedule schedule;

boolean
forceRun;

BatchHeader
batchHeader;


RefRecId
onlyTargetLocation;



#define.CurrentVersion(2)

#localmacro.CurrentList

schedule,


forceRun,


onlyTargetLocation

#endmacro

}


  • Next you need to compile forward on the changed class
  • Third is that you need to generate Incremental CIL
  • The next step is now to create the batch jobs. The easiest is to go to the Retail Distribution schedule and then just
    “Create batch job” on the A-1000



  • After this step, we need to go to the System Administration / Inquiries / Batch jobs / Batch Jobs
  • Find the A-1000 and set it to Withhold status
  • Go to Batch Tasks
  • Add a new line and type A-1010 in the Task Description. (the exact naming is important here). Find the RetailConnScheduleRunner in the lookup.
  • Condition: After all tasks are created, go to the Condition area and add a new line and point to the job, you want
    to be have finished before this can start.




AUTHOR:

Kim Truelsen



PUBLISHED DATE:

3rd July 2013




Источник: http://blogs.msdn.com/b/axsupport/ar...x-2012-r2.aspx
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
Старый 04.07.2013, 17:48   #2  
MikeR is offline
MikeR
MCT
Аватар для MikeR
MCBMSS
Лучший по профессии 2015
Лучший по профессии 2014
 
1,628 / 627 (24) +++++++
Регистрация: 28.11.2005
Адрес: просто землянин
Ссылка битая, подправьте.
__________________
Axapta book for developer
Старый 22.07.2013, 10:55   #3  
gl00mie is offline
gl00mie
Участник
MCBMSS
Most Valuable Professional
Лучший по профессии 2017
Лучший по профессии 2015
Лучший по профессии 2014
Лучший по профессии AXAWARD 2013
Лучший по профессии 2011
Лучший по профессии 2009
 
3,684 / 5788 (200) ++++++++++
Регистрация: 28.11.2005
Адрес: Москва
Записей в блоге: 3
Ссылка не битая, просто из блога, похоже, удалили эту публикацию, причем очень быстро - уже вскоре после того, как axforum ее "затянул" по RSS
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
amer-ax: It was a great day! Blog bot DAX Blogs 3 29.12.2012 01:02
emeadaxsupport: Final Microsoft Dynamics AX 2012 R2 Content Available! Blog bot DAX Blogs 0 04.12.2012 06:12
DAX: Official Dynamics AX 2012 R2 Content (update) - Where is it, and how can you find out about updates? Blog bot DAX Blogs 0 03.12.2012 11:11
emeadaxsupport: AX 2012 Retail: How to enable tracing in AX 2012 Retail Blog bot DAX Blogs 0 07.08.2012 15:11
emeadaxsupport: New Content for Microsoft Dynamics AX 2012 : October 2011 Blog bot DAX Blogs 0 27.10.2011 17:11

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

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

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 23:45.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.