Tuesday 22 April 2014

Displaying Financial Dimension in Grid - AX 2012

To Display Financial dimensions in CustTableList page.

Write a display method in CustTable.

display str 10  MU_Vertical()
{
    DimensionAttributeValueSetStorage       dimStorage;
    CustTable                               custTable;
    Counter                                 i;
    str                                     returnValue;  
    dimStorage = DimensionAttributeValueSetStorage::find(this.DefaultDimension);
    for (i=1 ; i<= dimStorage.elements() ; i++)
    {
        if(DimensionAttribute::find(dimStorage.getAttributeByIndex(i)).Name=='Vertical')
        {
            returnValue = dimStorage.getDisplayValueByIndex(i);
            break;
        }
    }
    return returnValue;
}

1 comment:

  1. Hi!

    When i can put this method because i create a new field with this datamethod but nothing appears

    ReplyDelete