HOW TO GET DIMENSION FROM A RECORD
static void getCustomerDimension(Args _args)
{
CustTable
custTable = CustTable::find("Cust001");
DimensionAttributeValueSetStorage
dimStorage;
Counter i;
dimStorage =
DimensionAttributeValueSetStorage::find(custTable.DefaultDimension);
for (i=1 ; i<=
dimStorage.elements() ; i++)
{
info(strFmt("%1 = %2",
DimensionAttribute::find(dimStorage.getAttributeByIndex(i)).Name,
dimStorage.getDisplayValueByIndex(i)));
}
}
Thanks,
Vikas
No comments:
Post a Comment