Wednesday, 4 February 2015

Getting Dimension value and description from default dimension in ax 2012

private Description getdimension(DimensionDefault _defualtDimension)
{
    DefaultDimensionView    defaultDimensionView;    
    
    select defaultDimensionView
        where defaultDimensionView.DefaultDimension == _defualtDimension
        && defaultDimensionView.Name == 'CostCenter';    
    
    return defaultDimensionView.dimensionDiscription();   
}

No comments:

Post a Comment

Calculate ledger balance by dimension set in X++ in AX2012/Dynamics 365 FO

There are a variety of ways users can view balances in the general ledger. Some of the most common options are: 1. Trial balance 2. Financia...