X++ tips, tricks and notes

X++

Legal entity lookup with a virtual company range

Legal entity lookup with a virtual company range

I recently discovered a strange quirk with the DataArea table in AX2012. DataArea table The DataArea table contains the list of all legal entities. All companies that you can see in the address bar and in the status bar are saved in this table. Additionally, it […]

X++: Export all Dynamics AX 2012 embedded icons

X++: Export all Dynamics AX 2012 embedded icons

Have you ever wanted a folder containing all the icons in AX2012? Then I think you have also searched for a folder somewhere on the server containing the icons and pictures? Search no more! Since I couldn’t find this folder or a piece of code […]

X++: Create a list of child classes or find extended methods

X++: Create a list of child classes or find extended methods

Jet another small X++ job: This job shows a list of child classes per parent class. If you want so see the parent-child relationship in AX2012, the best way is to Right click on the class > Add-ons > Type hierarchy browser. The Type hierarchy […]

List of table fields and types in CSV file

List of table fields and types in CSV file

I wrote a job today to create a list of fields in a table and each field’s data type. You specify a table name in the variables, and it he job exports a list of non-system fields in the format: “Displayed name” (label), “Technical Name” […]

X++ “Cross reference” for extended data types

I wrote a job to check which fields uses a specific enum. This week I needed something similar for an extended data type and I modified it to work with EDTs instead. The cross reference on the environment I am currently working on is not […]

Development III training, Day 2

Development III training, Day 2

I am back with my notes from development III training. Today was ‘interesting’ since the trainer would tell us things that are not true with the hope that it will encourage us to test and figure things out for ourselves. I guess it’s a good […]

Developer III Training, Day 1

Developer III Training, Day 1

Dynamics AX Development training consists of six courses from an introduction to AOT objects and X++ code, to developing Windows apps that connect to Dynamics AX. I completed Development I and II in my first two weeks as an AX developer and found it incredibly […]

Programming puzzle in X++: Is this character upper case?

I would like to share a logic puzzle that baffled me today (for some background, read this stack overflow question ). This will likely work in many programming languages, but obviously I am going to show you X++ code. Problem: Given the following string, write […]

X++ “Cross reference” for Base Enums

While I love using the cross reference function in Dynamics AX 2012 (and am training myself to use it more often), the cross reference in our environments are often not up to date. Unfortunately this is especially true for our client development environments. I wrote […]

Generate a list of shared projects per layer

Today I add to compare the projects in an acceptance environment with the projects in the test environment. I did this so that I can make backups of the projects in test that are not in acceptance yet, before I import the acceptance model store. […]