How to Add financial dimension on forms inside AX 2012:

Hi, 1. Perform a) Open AOT>>Data Dictionary>>Extended Data Types type/select DimensionDefault and drag it in table which will be used further as a datasource in form where you have to show the Dimensions. Do Remember that you have to drag it in table not at DataSource. b) Open Table in the Data, Dictionary which will…

Enable/Disable Fact boxes, Preview Panes in AX2012:

Hi, In Microsoft Dynamics AX 2012, if you want to disable factboxes/preview panes across application then you can do so. It’s not recommended to do this activity but this will help in troubleshooting performance issues assoicated with opening forms in ax2012 by controlling ‘Timeout’ parameter as below. Go to ->System Administration->Setup->Client performance options. Visit Ax2012-client-performance-options…

To fetch the table names from AOT in AX:

Hi, Use below code to fetch the table names in AX. static void tablelist(Args _args) { tableId tableId; int tablecounter; Dictionary dict = new Dictionary(); container tableNamesList; ; for (tablecounter=1; tablecounter<=dict.tableCnt(); tablecounter++) { tableId = dict.tableCnt2Id(tablecounter); //tableNamesList = conIns(tableNamesList,1,dict.tableName(tableId)); info(dict.tableName(tableId)); } }

Fetch the ip address of the system in AX:

Hi, To fetch the IP address in AX use the below code, static void fetchipaddress(Args _args) { System.String hostName = System.Net.Dns::GetHostName(); System.Net.IPHostEntry hostEntry = System.Net.Dns::GetHostEntry(hostName); System.Net.IPAddress[] addresses = hostEntry.get_AddressList(); System.Net.IPAddress address; System.Net.Sockets.AddressFamily addressFamily; System.Collections.IEnumerator enumerator = addresses.GetEnumerator(); while (enumerator.MoveNext()) { address = enumerator.get_Current(); addressFamily = address.get_AddressFamily(); if (addressFamily == System.Net.Sockets.AddressFamily::InterNetwork) { info(address.ToString()); } } }

No device error on AX Client Startup:

Hi, Today I came across a weird issue while opening AX2009; it was never an issue before. This error message is caused by the ActiveX component for the phone integration on form smmPhone which returns an error for each phone device which is offline. In order to prevent the error message, just edit the code…

Usage of Lists in AX:

Hi, List is a type of data structure and collections, it can contain unlimited items, in x++, list can be created of several Types(specified in the Types base enum), the type must be specified on the declaration and it cannot be changed after the initialization. There are some classes exists to enumerated and iterate the…