How to add financial dimension to a list page form in ax 2012?

Hi,

I just want to add two financial dimensions i.e. Cost center Id and Cost center name to my Hcm worker listpage as per my requirement. I tried to do it by writing display method. but I am not able to do it.

Kindly help me on this…

Thanks,

Soumya

You can write the following display method .

public void getDimensionValue()
{
DimensionAttributeValueSetStorage dimStorage;
Str dimensionName;
Counter i;

dimStorage = DimensionAttributeValueSetStorage::find(DefaultDimensionRecId);

for (i= 1 ; i<= dimStorage.elements() ; i++)
{
if(DimensionAttribute::find(dimStorage.getAttributeByIndex(i)).Name == “DimensionName”)
{
dimensionName = dimStorage.getDisplayValueByIndex(i);
}
}
}

replace DimensionName with your financial dimension and DefaultDimensionRecId is the default dimension rec id**.**

Hope this helps.