public str getDimValue(RecId _DefaultDim, str dimName)
{
DimensionAttributeValueSetStorage dimStorage;
Counter i;
str ret="";
dimStorage = DimensionAttributeValueSetStorage::find(_DefaultDim);
for (i=1 ; i<= dimStorage.elements() ; i++)
{
if(DimensionAttribute::find(dimStorage.getAttributeByIndex(i)).Name == dimName)
{
ret =dimStorage.getDisplayValueByIndex(i));
}
}
return ret;
}
No comments:
Post a Comment