Posts

Showing posts with the label Dimension

Find Active Dimensions for a Legal Entity in Ax2012

Hi, Please use the below code to find the active dimension by legal entity. it will be useful when we do data upload. static void getActiveFinancialDimensions(Args _args) {     DimensionAttributeSetItem   dimAttrSetItem; // Contains the number of dimensions active for a account structure ledger     DimensionAttribute          dimAttr; // Contains the financial dimensions records     DimensionEnumeration        dimensionSetId; //Record id for table that contains active dimensions for current ledger         int dimAttrCount;         //Get the record Id (dimension set id) for current ledger to find active dimensions     dimensionSetId = DimensionCache::getDimensionAttributeSetForLedger();       //Find the count of active dimensions fo...

Extract/Create Dimension Master values

Hi, The below job helps to extract all the values for the specific dimension. //To extact all the values for a specific dimension (ex: Department) static void ExtractDimensionValues(Args _args) {     DimensionValueService   service         = new DimensionValueService();     DimensionContract       contract        = new DimensionContract();     DimensionValueContract  contractValue   = new DimensionValueContract();     List                    deptDimList;     ListEnumerator          listEnum;        Name                 ...