Alternate of displayOption Method on List Page.

3
Written By: Taimoor Hussain

Sometimes, you may require doing the record color coding on the list pages. Record color coding can be easily achieved by overriding the displayOption method on the form data source and writing the certain color code statements based on the required conditions in AX. It is not possible with the list page as you cannot […]

read more

Enable/Disable all the fields in a data source in one go

0
Written By: Taimoor Hussain

If you have the requirement of enabling/disabling all the fields in a data source bound with a grid or so then AX provides a built-in global static method which can be used. Where _allowEdit is passed to enable or disable the fields. AOT > Class > Global > allowEditFieldsOnFomrDS_W. Happy DAXing!

read more

Product Dimensions Description Field on lookup

2
Written By: Taimoor Hussain

Today, I’m going to show you the simple recipe of adding the “Description” field against every product dimension of the standard product dimension lookup. It will provide the ability to the user to see the product dimension like configuration ID, Size Id, Color Id, Style Id description right on the lookup which is not available […]

read more

Date Lookup in a String Control

Sometimes, you may need to lookup the date calendar in a string control. This was easily possible by overriding the lookup function and call the below method in the AX older versions. public void lookup() { ; this.performFormLookup(SysLookup::LookupDate()); } But in AX2012R2 you cannot use the lookupDate function like this because it is made protected […]

read more

Calling table insert stops the AX service AX2012

0
Written By: Taimoor Hussain

Recently, I faced an issue when calling table insert from code. Every time I executed the statement table.insert() the service of dynamics AX2012 was stopped. There may be two reasons of this issue. 1-      The RecIds of that particular table tables is getting duplicated, in case if you inserted the data to  that particular table […]

read more

Delete All the Transactions in a Company by keeping the Master Data intact Dynamics AX

Sometimes, you may have a requirement to delete all the transactions in a company while keeping the Master data as it is. In order to achieve this you can duplicate the company and run SysDatabaseTransDelete class, which will delete all the transactions in the related company while keep the master data intact. 1. Press Ctrl […]

read more

Usage Data User Specific Report Error Dynamics AX 2012

Sometimes, you might face the error in which some reports like “Summary trial balance” report in general ledger will not execute. In order to resolve this error you need to delete the related records from SysLastValue table. You cannot find this table in AOT so go to SysLastValue form, open data source node, right click […]

read more

Consuming External Web Service through a .Net Class Library Wrapper in Microsoft Dynamics AX 2009

Direct referencing a web service in AOT may lead to different issues some times when it comes to use service reference in the x++ code. I will show you a simple recipe of how we can consume an external web service in AX2009 by wrapping this web service into a .net assembly wrapper. Open a […]

read more

Import ledger, AP and AR invoice journal lines

Recently, I came across a requirement in which users want to import the ledger, AP and AR invoice journal lines from a pre-defined excel format in general journal AX2012R2. So I developed a functionality hope that helps you Below snap shot shows the flat list of all objects in this project.  Below snap shot shows […]

read more