How to Update default dimension with "Fixed value" on a main account in ax 2012 static void tbs_UpdateMainAccountDefaultDimensions(Args _args) { MainAccountRecId mainAccountRecid = 5637172326; DataAreaId dataAreaId = "CompanyId"; CompanyInfo companyInfo = CompanyInfo::findDataArea( CompanyId ); MainAccountLegalEntity mainAccountLegalEntity = MainAccountLegalEntity::findByMainAccountLegalEntity(mainAccountRecId,companyInfo.RecId,true); DimensionValue costCenter ...
Posts
Showing posts from July, 2020
- Get link
- X
- Other Apps
How to add custom lookup (Multi Companies)in Dynamics AX 2012 Through X++ public void lookup(FormControl _formControl, str _filterStr) { //super(_formControl, _filterStr); Query query = new Query(); QueryBuildDataSource queryBuildDataSource; SysTableLookup sysTableLookup; query.allowCrossCompany(true); sysTableLookup = SysTableLookup::newParameters(tableNum(TaxGroupHeading), _ formControl); queryBuildDataSource = query.addDataSource(tableNum(TaxGroupHea...