Showing posts with label Dimensions. Show all posts
Showing posts with label Dimensions. Show all posts

Saturday, 23 February 2013

Dimension framework in AX2012

Bill Frandsen from Microsoft Dynamics AX GFM team has published a series of posts on Dimensions in AX2012. It consist of 7 posts. I would strongly recommending going through these posts. The posts cover different areas of Dimension framework with showing how to set-up things in AX and then showing how it is saved in the database.

Ledger account combinations - Part 1 (Dimensions)
Ledger account combinations - Part 2 (Dimension enumerations, default dimensions)
Ledger account combinations - Part 3 (Structures and constraints)
Ledger account combinations - Part 4 (Advanced rules)
Ledger account combinations - Part 5 (Ledger dimensions (A))
Ledger account combinations - Part 6 (Ledger dimensions (B))
Ledger account combinations - Part 7 (Advanced topics)

This posting is provided "AS IS" with no warranties. Use code at your own risk.

Wednesday, 13 June 2012

Wrong EDT on HcmEmployment

In Dynamics AX 2012, financial dimensions has been given a full makeover. As a results the tables which had fields with EDT Dimension has to be replaced with fields that have the new EDT DimensionDefaut. This can be observed by looking at fields like CustTable.DefaultDimension. However HcmEmployment.DefaultDimension refers to EDT RefRecId as shown below.


Although it works fine as DimensionDefault is derived from RefRecId, but if you try to use some of the classes like DimensionProvider, system will throw following error 

Unknown type: RefRecId

The method addDataSourceToQuery in the DimensionProvider class checks the field's EDT and throws error if it is not a proper EDT. This field in the HcmEmployment table needs to be changed to the right EDT  until a hotfix addresses the issue.


This posting is provided "AS IS" with no warranties. Use code at your own risk.