Skip to main content

Posts

Showing posts with the label call super

How to use financial Dimension technically in MSD AX 2012

a. Open AOT>>Data Dictionary>>Extended Data Types type/select Dimension Default and drag it in table which will be used further as a data source in form where you have to show the Dimensions. Do Remember  that you have to drag it in table not at Data Source. b .Open Table in the Data, Dictionary which will be used as a Data source, and create a relation with table DimensionAttributeValueSet . c .Right Click the Relations. Select ‘New Realation’.  Select properties. Set name as DimensionAttributeValueSet, Table as DimensionAttributeValueSet. d. Right Click the this newly created Relation DimensionAttributeValueSet, select New>>Normal. e. Set the properties of Normal Relation as:  Field=TheFieldwhichwillsaveDimensionNumberInYourTable Source EDT= DimensionDefault Related Field=RecId 2.Verify that the table that will hold the foreign key to the DimensionAttributeValueSet table is a data source on the form(the one on which you have to s...

check existence of table in axapta

This is sample code to  check existence of table in  axapta. This is just an example to check whether that table exist in AOT (Application object tree) or not. If table exist then it will return true otherwise it will show error the table is already exists. public boolean modified() { boolean ret; ret = super(); flag = false; value= Controlname.valueStr(); flag = TableName::exist(value); if (flag == true) { info("Already Exists"); } return ret; }