Tuesday, January 29, 2013

How to display dimension combination values name in AX 2012

Dimension combinations are stored are DimensionAttributeValueCombination class. But they are stored as a combination for example: (100010-AX-00001- – - -). How would you know the value in each combination belongs to what dimension?
This was one of my requirements to find name against each dimension combination values and display it on Trial Balance screen.
The answer is through dimension storage class. This class is used to manipulate these combinations.
The code below helps you in finding out the required values.