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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 19.07.2011, 19:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,644 / 848 (80) +++++++
Регистрация: 28.10.2006
mfp: Uptaking installation specific IDs
Источник: http://blogs.msdn.com/b/mfp/archive/...cific-ids.aspx
==============
In Microsoft Dynamics AX 2012 we have solved the element id problem. The solution is outlined in this post. The solution consists of major changes both having an impact on existing AX 2009 and AX 4 solutions:
  1. Element IDs (like class ID and table ID) are now 32 bit.
  2. Element IDs are installation specific. The same class will have different IDs on different installations.
When making IDs 32 bit we had to deprecate the TypeId() function. TypeId() took one argument the name of an Base Enum or Extended Data Type. And it returned an integer value, where the upper 16 bits were the ID, and the lower 16 bits denoted if the type was a Base Enum or an Extended Data Type. For example: TypeId(MyEDT) returned 0xC351 000B = (50001 > 16 extendedTypeNum(MyEdt) typeId(myEnum) >> 16 enumNum(MyEnum) typeId2ExtendedTypeId(typeId(myEdt)) extendedTypeNum(MyEdt) As element IDs now are installation specific then we need to provide enough information for data export/import to convert the data correctly between the source and target system. There are 3 things to do:
  1. Do not store IDs in containers,
    If IDs are stored in a non-relational format (like a container), then data export/import cannot identify them, and the IDs will be imported as-is; which means they will resolve incorrectly on the target system. A best practice rule is available to identify IDs in containers.
  2. Use the right Extended Data Types on your fields (TableId, FieldId, ClassId, etc.)
    Data export will convert data using these Extended Data Types into a format that can be correctly resolved on the target system.
  3. For fields containing field IDs
  1. Set the RelatedTable property, OR
  2. Create a new field group with the field referencing the table and the field referencing the field.
For data export/import to be able to correctly convert a field ID, it is required that you specify which table the field belongs to. If the field always belongs to the same table, you can use the RelatedTable property to specify it (3.1), OR if the field ID is referencing a field in an arbitrary table, you need to link the table reference and the field reference to each other. You do this by creating a new field group containing the two fields (3.2) THIS POST IS PROVIDED AS-IS AND CONFERS NO RIGHTS.




==============
Источник: http://blogs.msdn.com/b/mfp/archive/...cific-ids.aspx
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
mfp: The solution to the element ID problem Blog bot DAX Blogs 0 12.07.2011 19:12
mfp: Adapting to installation specific IDs Blog bot DAX Blogs 0 03.01.2011 20:12
semanticax: Dynamics AX 2009 Installation - Application Blog bot DAX Blogs 0 22.12.2010 08:11
CRM DE LA CREME! CRM Installation Tips Blog bot Dynamics CRM: Blogs 0 21.05.2010 10:05
mfp: AX6 sneak preview - elements with 32 bit IDs Blog bot DAX Blogs 10 30.05.2009 10:45

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

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

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 19:41.