Category Archives: Microsoft Dynamics AX

All things DAX

Writing UNIX style text files

I’ve written many mods for AX that required output of data to a text file of some form (the most common being CSV), but recently I had to ensure that the file being written was compliant with a UNIX reader. … Continue reading

Share/Bookmark
Posted in AX 2012 | Tagged , , , , | Comments Off

AX Model Manager

With previous versions of AX utilizing the graphical interface for XPOs to deploy code, working with the Models & Models stores in AX 2012 using the command line tools may at times seem a bit tedious. With this in mind … Continue reading

Posted in AX 2012, Microsoft Dynamics AX | Tagged , , , , , , , | 4 Comments

Objects not in Version Control (Pre 2012)

Due to the level of interest that I received on my last post, I’ve decided to go ahead and release this version of the “Objects not in Version Control” script. I’ve cleaned up the code and added some improvements that … Continue reading

Posted in AX 2009, AX 4.0, Microsoft Dynamics AX | Tagged , , , , , , | Comments Off

Objects not in Version Control (AX 2012)

If you’ve ever worked in a development environment that utilizes version control I’m sure that you have fell victim to the “missing objects” error during the build phase. This usually happens because sometimes you create objects in the AOT and … Continue reading

Posted in AX 2012, Microsoft Dynamics AX | Tagged , , , , , | Comments Off

Language Specific Number Formatting

I recently encountered a situation in AX where I needed to convert a number into a string that was specific to the current user’s language setting. AX provides a method called num2str for converting a real number into a formatted … Continue reading

Posted in AX 2012 | Tagged , , , , , , , , , | Comments Off

Set Focus to Main Content in EP

Recently while working with a custom control in EP for AX 2012 I came across an issue when trying to set focus to a specific Textbox. I implemented all of the standard focus functions available in code, but none of … Continue reading

Posted in AX 2012, Enterprise Portal, Microsoft Dynamics AX | Tagged , , , , , | Comments Off

Automatic Class Pack/Unpack Part 2

In a previous post I demonstrated a way to pack & unpack a class in a manner that would always be version independent without the use of macros. In AX 2012 Microsoft added attribute support for classes and methods. When … Continue reading

Posted in AX 2012, Microsoft Dynamics AX | Tagged , , , , , | 2 Comments

Posting a Transfer Order using X++

While working with unit testing in AX, I came across the need to generate a transfer order and post it to generate the associated tables. I have used the FormLetter classes for posting Sales Orders & Purchase Orders in the … Continue reading

Posted in AX 2012, Microsoft Dynamics AX | Tagged , , , , | 6 Comments

Last Weekday of Month

This method will calculate the date of the last specified weekday in the month of the given date. static date lastWeekdayOfMonth(date _date, WeekDays _weekday){ int _endWeekDay, _diff; date _endDate = endmth(_date); ; _endWeekDay = dayofwk(_endDate); _diff = _endWeekDay – _weekday; … Continue reading

Posted in AX 2009, AX 2012, AX 4.0, Microsoft Dynamics AX | Tagged , , | Comments Off

Calculating a File Hash

Some time ago a colleague presented me the task of computing a SHA256 hash for an output file. This hash would be stored in a table in a hexadecimal string format, along with the file info, to ensure that the … Continue reading

Posted in AX 4.0, Microsoft Dynamics AX | Tagged , , , , , | Comments Off