Apr 15, 2016

LedgerDimension 값 찾기 (Value)

static void findLedgerDimensionValue(DimensionDynamicAccount _LedgerDimension)
{
    DimensionAttributeLevelValueAllView dimAttrView;
    DimensionAttribute                  dimAttr;

    _LedgerDimensionValue.clear();

    while select DisplayValue from dimAttrView
    where dimAttrView.ValueCombinationRecId == _LedgerDimension
    join Name from dimAttr
    where dimAttr.RecId == dimAttrView.DimensionAttribute
    {
        switch (dimAttr.Name)
        {
            case "Cust":
            info(strFmt("Customer: %1", dimAttrView.DisplayValue));
            break;

            case "MainAccount"
            info(strFmt("MainAccount: %1", dimAttrView.DisplayValue));
            break;

            case "Vend":
            info(strFmt("Vendor: %1", dimAttrView.DisplayValue));
            break;
        }
    }
}

No comments:

Post a Comment