static void GetFinancialDimensionValue1(Args _args)
{
LedgerJournalTable ledgjournal = LedgerJournalTable::find("00578");
DimensionAttributeValueSetStorage dimStorage;
Counter i;
dimStorage = DimensionAttributeValueSetStorage::find(ledgjournal.DefaultDimension);
for (i=1 ; i<= dimStorage.elements() ; i++)
{
//if you want particular Dimension then put if condition like this
if(strFmt("%1",DimensionAttribute::find(dimStorage.getAttributeByIndex(i)).Name)=="department")
{
info(strFmt("%1 = %2", DimensionAttribute::find(dimStorage.getAttributeByIndex(i)).Name,
dimStorage.getDisplayValueByIndex(i)));
}
}
}
No comments:
Post a Comment