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

Microsoft Dynamics AX Job – Eliminate Duplicate Barcode issue

0
Written By: Fatima Zafar

I wrote a job that eliminated the duplicates barcode issue in AX 2012. The job goes through the list of the barcodes, finds duplicated barcodes and adds a D and a counter value at their beginning.  Duplicated barcodes, which are renamed after running this job, can always be found easily by getting a list of […]

read more

Region as an Internal Organisation

System should allow users to create Region within the internal organization hierarchy. For this we have to do some customization First create new operating unit type element in OMOperatingUnitType base enum OMOperatingUnitType is used in OMOperatingUnit tables so we need to Restore OMOperatingUnit tables. Create new View which named as DimAttributeOMRegion as shown in below […]

read more

Customize Existing Number Sequence to Fiscal Year Number Sequence

Here we are customizing existing Number sequence and convert it in to Fiscal year number sequence Many customer demands for Purchase order creation with automatic year means how to add year to a number sequence in AX2012, e.g. to generate IDs such as 2013-xxxxx and 2014-xxxxx, that would automatically use the current year. Some people […]

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

Creating a Customer Form at Run Time in X++

0
Written By: Fatima Zafar

The job “CustomerForm” creates a customer form at run time in x++. In the form, I have used two datasources “CustTable” and “DirPartyTable”. I have also shown how to add menuitemfunctions in a form through X++. Here is the code in X++: public static void CustomerForm(Args _args) { //Initialization DictTable dictTable; DictTable dictTable1; Form form; […]

read more

Finding the occurrence of string within another string through X++

0
Written By: Fatima Zafar

X++ offers a lot of string functions to be used on the strings. Here, we will be using the “strscan” function. The “strscan” searches for a string within another string ————————————————————————————————————- The strscan function takes the following arguments Strscan (str text, str characters, int position, int number); Text: The target string Characters: The string to […]

read more