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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 05.02.2019, 04:20   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
axtoday: Chain of Command - avoiding the next call
Источник: http://axtoday.blogspot.com/2019/02/...next-call.html
==============

This is possibly something that needs to be used very sparingly if at all, but apparently there is a way (up until the latest version - v8.1) to avoid calling the next() call when using chain of command.

The key is to use double nested conditions:

//this will not work "call to 'next' should be done only once and unconditionally"
protected voidchooseLinesPackingSlip(boolean _append)
{
If (true)
{
this.somethingElse(_append);
return;
}


nextchooseLinesPackingSlip(_append);

}

//this will work
protected void chooseLinesPackingSlip(boolean _append)
{
If (true)
{
if (true)
{
this.somethingElse(_append);
return;
}
}


next chooseLinesPackingSlip(_append);

}



Источник: http://axtoday.blogspot.com/2019/02/...next-call.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
sertandev: AX7 (D365) Chain of command with example Blog bot DAX Blogs 0 20.03.2018 13:11
sertandev: AX7 (D365) Chain of command with example Blog bot DAX Blogs 1 15.11.2017 19:38
dynamicsnavax: Chain of Command–next() gotcha Blog bot DAX Blogs 0 27.10.2017 10:11
emeadaxsupport: Enabling the new Call Center Channel User Functionality in AX 2012 R3 Blog bot DAX Blogs 0 02.09.2014 18:11
Gareth Tucker: Call Centre Optimised CRM–An Example Solution Blog bot Dynamics CRM: Blogs 0 07.09.2011 17:11
Опции темы Поиск в этой теме
Поиск в этой теме:

Расширенный поиск
Опции просмотра

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

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

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