Pages

Wednesday, January 28, 2015

Fetching Financial Dimension Value X++

static void Fetching_Financial_Dimension_Value(Args _args)
{
    PurchTable                          _purchTable;  
    DimensionAttributeValueSetStorage   class_dimStorage;
    str                                 dimvalue;
   
    _purchTable = PurchTable::find('PO-000007');
    class_dimStorage = DimensionAttributeValueSetStorage::find(_purchTable.DefaultDimension);
   
    info(strFmt('Purchase Order PO-000007, Department : %1',  
  class_dimStorage.getDisplayValueByDimensionAttribute(DimensionAttribute::findByName('Department').RecId)));
 }


 

2 comments:

Give me feedback.