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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 14.08.2018, 08:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,459 / 846 (79) +++++++
Регистрация: 28.10.2006
daxmusings: Query Functions: SysQueryRangeUtil Extensions
Источник: http://feedproxy.google.com/~r/Dynam...rangeutil.html
==============

Now that overlayering is a thing of the past, how does one add methods to SysQueryRangeUtil as explained in my old post from back in 2013?

Simple. Create your own class, name it whatever you want. Add a static method as described in the old post. The only difference is that you just put an attribute on top of it indicating that it's a query range utility method... So the method used in the old post, would now just look like this:

[QueryRangeFunctionAttribute()]
public static str customerTest(int _choice = 1)
{
AccountNum accountNum;

switch(_choice)
{
case 1:
accountNum = '1101';
break;
case 2:
accountNum = '1102';
break;
}

return accountNum;
}

If you're look for an example in the standard code, you can find class "SysQueryRangeUtilDMF" in the AOT.

Источник: http://feedproxy.google.com/~r/Dynam...rangeutil.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
daxmusings: The Overall Concept of Extensions in AX 7 Blog bot DAX Blogs 0 14.09.2017 13:11
daxmusings: The Overall Concept of Extensions in AX 7 Blog bot DAX Blogs 0 04.10.2016 12:11
daxmusings: Custom Query Range Functions using SysQueryRangeUtil Blog bot DAX Blogs 0 31.07.2013 18:11
vasantharivali: Dynamic Query Using Aggregative Functions and Joins Blog bot DAX Blogs 0 17.11.2012 11:12
Опции темы Поиск в этой теме
Поиск в этой теме:

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

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

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

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