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

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

Introduction

Continuing this series of blog posts, this post describes APIs used for most common defaulting patterns.

This blog post series includes:
DimensionDefaultingService APIs

The dimension defaulting service provides the APIs needed for defaulting scenarios. The methods are highly optimized for performance.

Default dimensions

The serviceMergeDefaultDimensions() API is the most commonly used API for default dimensions. It should be called whenever a new default dimension needs to be created from 2 to 4 other default dimensions. If more default dimensions need to be merged than 4, it can be called multiple times with the result of the prior call used as the first parameter to the subsequent call.



Figure 1: DimensionDefaultingService.serviceMergeDefaultDimensions()

The serviceReplaceAttributeValue() API is useful in the case that a single dimension value needs to be copied from one default to another default set. The value specified will replace whatever value already exists in the source set.



Figure 2: DimensionDefaultingService.serviceReplaceAttributeValue()

Ledger dimensions

The serviceCreateLedgerDimension() API is the most commonly used API for ledger dimensions. It should be called whenever a new ledger account combination needs to be created from a default account or existing ledger account combination and 0 to 3 default dimensions. If more default dimensions need to be merged than 3, it can be called multiple times with different sources taking the result of the prior call as the first parameter to the subsequent call. The MainAccount dimension is only retrieved from the supplied ledger dimension.



Figure 3: DimensionDefaultingService.serviceCreateLedgerDimension()

The serviceCreateLedgerDimensionForType() API is similar to the previous API but rather than creating a ledger account combination, it can create other ledger dimension types such as budget accounts or budget planning accounts specified by the LedgerDimensionType parameter.



Figure 4: DimensionDefaultingService. serviceCreateLedgerDimensionForType()

The serviceCreateLedgerDimForDefaultDim() API is similar to the previous APIs, but the values from the default dimension are copied directly to the new ledger dimension, while the dimension values from the ledger dimension are merged afterwards. In the previous APIs, the ledger dimension values were copied, and the default dimension values were merged.



Figure 5: DimensionDefaultingService.serviceCreateLedgerDimForDefaultDim()

The serviceLedgerDimensionFromLedgerDims() API is similar to the previous APIs but uses only ledger dimensions as sources to construct a new ledger dimension. The main account will only be retrieved from the first ledger dimension.



Figure 6: DimensionDefaultingService.serviceLedgerDimensionFromLedgerDims()

The serviceMergeLedgerDimensions() API is similar to the previous API but is optimized to combine just 2 ledger dimensions.



Figure 7: DimensionDefaultingService.serviceMergeLedgerDimensions()

The serviceCreateLedgerDimFromLedgerDim() API is useful when copying ledger dimensions from a historic posted document onto a new unposted document to ensure that it uses the current account structure configuration. This will avoid validation errors when validating the new ledger dimensions during posting.



Figure 8: DimensionDefaultingService.serviceCreateLedgerDimFromLedgerDim()

In the next blog post, additional defaulting patterns and APIs that can be used in advanced scenarios will be described.




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

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
ax_gfm_framework_team: Dimension defaulting in accounting distributions, Part 4 - Fixed dimensions and handling of empty dimension values Blog bot DAX Blogs 0 20.12.2013 23:11
ax_gfm_framework_team: Dimension defaulting in accounting distributions, Part 2 - Basic defaulting sequence and priorities Blog bot DAX Blogs 0 17.12.2013 09:12
amer-ax: It was a great day! Blog bot DAX Blogs 3 29.12.2012 01:02
ax_gfm_framework_team: Batch processing for dimension set balance rebuilds Blog bot DAX Blogs 0 10.11.2012 02:16
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, время: 20:27.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.