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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 13.09.2014, 01:12   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
ax_gfm_framework_team: Dimension defaulting - Part 4 (Merging patterns)
Источник: http://blogs.msdn.com/b/ax_gfm_frame...-patterns.aspx
==============

Introduction

Continuing this series of blog posts, this post covers how default dimensions are merged between entities.

This blog post series includes:
Default dimension merging

Figure 1 below shows the user manually cleared the Department dimension on the line, which in turn creates a new default dimension foreign key and updates the purchase order line. Since the line has not yet been saved this updated foreign key is only visible on the table buffer in memory, but the new default dimension can be queried and found as shown in Figure 2 below.



Figure 1: Default dimension modified on a document line (Purchase order line)





Figure 2: SQL query and output showing updated default dimensions

Next, consider the item that the user will enter on the purchase order line. Figures 3 and 4 below show default financial dimensions on the released product and the SQL query and result for that default dimension in the database.



Figure 3: Default dimensions on an item





Figure 4: SQL query and output showing default dimensions on item record

Next, the user enters the item on the purchase order line. Figures 5 below shows the item selected on the purchase order line and the resulting default dimensions. In this case, the default dimension values were merged by the purchase order logic.



Figure 5: Resulting default dimensions on a purchase order line





Figure 6: SQL query and output showing default dimensions on item record

The purchase order logic merges the default dimensions from 3 different sources when the item is specified for a purchase order line as shown in Figure 7 below.

Order header default dimensions merged with the order line default dimensions = merged result 1 default dimensions



Item default dimensions merged with merged result 1 = final order line default dimensions (merged result 2)



Figure 7: Merging steps taken

The tables in Figure 7 show the logical steps of the merging that is occurring. However, these steps are combined during execution using the APIs provided by the dimensions framework. Figure 8 below shows the code needed to do all of the merging of the dimensions from the 3 sources shown above.



Figure 8: Code used to merge the three sets of default dimensions

In the next blog post, examples of merging for the purpose of creating new ledger dimensions will be explained.




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

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
ax_gfm_framework_team: Dimension defaulting - Part 7 (Advanced topics) Blog bot DAX Blogs 0 13.09.2014 01:12
ax_gfm_framework_team: Dimension defaulting - Part 6 (Common pattern APIs) Blog bot DAX Blogs 0 13.09.2014 01:12
ax_gfm_framework_team: Dimension defaulting - Part 5 (Ledger dimension creation) Blog bot DAX Blogs 0 13.09.2014 01:12
atinkerersnotebook: Walkthrough & Tutorial Summary Blog bot DAX Blogs 1 09.09.2013 09: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, время: 09:09.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.