Hi All,
I have a requirement where i need to get all the financial dimensions of a Fixed Asset,:

I tried to get atleast one of them but giving me a blank value instead :
DimensionAttributeValueSetStorage dimStorage;
Str costCenter;
Counter i;
AssetBook assetBook;
//dimStorage = DimensionAttributeValueSetStorage::find(assetBook.DefaultDimension);
dimStorage = DimensionAttributeValueSetStorage::find(AssetTable::find('167968').DefaultDimension);
for (i= 1 ; i<= dimStorage.elements() ; i++)
{
// Change the string "CostCenter" to whatever financial dimension you want
if(DimensionAttribute::find(dimStorage.getAttributeByIndex(i)).Name == "CostCenters")
{
costCenter = dimStorage.getDisplayValueByIndex(i);
}
}
Info(strFmt("%1",costCenter));
}
Can someone please explain me in detail how can I achieve this?
Thanks in Advance