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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 28.11.2019, 05:34   #1  
Blog bot is offline
Blog bot
Участник
 
25,459 / 846 (79) +++++++
Регистрация: 28.10.2006
Enum extensions case in D365
Источник: http://alexvoy.blogspot.com/2019/11/...e-in-d365.html
==============

Added two new values to an enum in the same model but in two different extensions.


The first one is looped perfectly (see code snippet below), and nothing but an index for the second. However, its value is present in a combobox.





[ExtensionOf(formStr(SysPolicyParameters))]
final public class CDPSysPolicyParametersForm_9180_Extension
{
public void populateTree()
{
DictEnum policyRuleTypeEnum;
int i;
policyRuleTypeEnum = new DictEnum(enumNum(SysPolicyRuleTypeEnum));


for(i = 0; i < policyRuleTypeEnum.values(); i++)
{
str sym = policyRuleTypeEnum.value2Symbol(i);
info(strFmt("%1 %2 %3", i, policyRuleTypeEnum.value2Name(i), sym));
}


next populateTree();
}
}
Already built and syncrhonized the whole world. What else can it be?

Take a look from the SQL side.


There are some old values that I created before but deleted later. All of them are still there.

I had to delete these unsynced values manually from SQL, then added needed values in AOT, and synched DB.

In fact, DB sync is triggered if you have some changes in tables/views only.
Now it is correctly recreated.




BTW there are two good articles about the subject

1) Extensible enums: Breaking change for .NET libraries that you need to be aware of
2) Development tutorial: Extensible base enumerations in Microsoft Dynamics AX 7


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

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
How to see enum values in D365 Blog bot DAX Blogs 0 03.05.2019 22:15
D365 не видит extensions UI-элементов fed DAX: Программирование 11 20.07.2018 11:25
Extensions and Edit and Display methods declaration in D365 Blog bot DAX Blogs 0 07.06.2018 03:25
Get Model element type name from its ID Blog bot DAX Blogs 0 14.02.2017 01:13
Leon's CRM Musings: Tracking the Movements of a Case Blog bot Dynamics CRM: Blogs 0 24.07.2015 00:13
Опции темы Поиск в этой теме
Поиск в этой теме:

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

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

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

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