Archive for the ‘Dynamics AX’ Category

A quick look at lists and a bit of XML

Friday, September 5th, 2008

This is just a quick look at the List object in Dynamics AX. Just played around with it to see what functionality was there and what wasn’t. As you can see I just created a simple list of integers and also one with records from InventTable, if you wan’t to know what types can be placed in the list, check out the baseEnum “Types” in the AOT.

As a bonus I also created a xml file of the list of integers.

(more…)

AIF - Invalid Message Schema … ??

Friday, September 5th, 2008

If you ever encounter this error message in Ax4sp2 and you are one hundred procent certain that there is nothing wrong with your file, check the MessageId tag. This sequence can not just be increased by one all the time, sometimes you come to a combination which simply does not compute..

(more…)

AIF - How to get rid of white-space in AX?

Thursday, September 4th, 2008

When you work with the AIF and xml files, you often need to handle so called “white-space”. The normal AX functions strltrim() and strrtrim() only handles normal space (ascii 32), these are two examples which handle all kinds of spaces in files. Small and simple, but very handy. :)

(more…)

AIF - Wrong field ID in the key data container in entity key

Friday, August 29th, 2008

@SYS92355 = “Wrong field ID in the key data container in entity key”

This error message from the AIF in AX4sp2 did give me some headache today..

Finally I solved it. I was about to export a SalesOrder with both header and lines, but I did put my sendElectronically method in the SalesLine table, *not* in SalesTable table.. So when executed I never got the correct keys. The query I used for the axd wizard was based on SalesTable first, and THEN SalesLine..

Might help someone else with the same or similar problem!

Preparation for Dynamics AX certifications

Wednesday, May 28th, 2008

I am currently studying to complete the Enterprise portal development certification exam. Today I found this link that describes the different parts of the exam. Anyone who have taken one of these exams before knows that you get your result for the entire exam but also for each of the exam parts. That is what this link gives you, an overview of the different parts and what subjects each part contains.

Microsoft learning manager.

You also get such information as what percentage each part is of the entire exam, which makes it easier to prioritize your studying in case of time restraints.

Send alerts/messages to online users

Tuesday, May 27th, 2008

In Axapta 3.x there is a functionality that lets you send messages to online users. This functionality is lost in Dynamics AX 4.x which is a problem when you want an easy way to communicate with the online users. Maybe you want the users to know that that the AOS is going to be restarted at a specific time and as a result they should save their work and log out before this happens.

I’ve looked around the web and have found some examples on how to create these notifications, but none that worked all the way without a visit to the debugger. Tired of not having access to this functionality I decided to build it, and this is the result.

As the base I am using the alerts functionality in Dynamics AX 4.0.
(more…)

Download Dynamics AX 2009

Friday, May 23rd, 2008

Dynamics AX 2009 is now ready for download. Click the link below to go to a blog post written by DaxGuy where you can find the download link.

Link to blog post.

Inside Dynamics AX 4.0 - Free eBook

Wednesday, May 21st, 2008

Found this on the blog mfp:s two cents. You can now download Inside Dynamics AX 4.0 for free as an eBook provided by Microsoft.

Link to blog post.

Nice to also have an portable and searchable version to add to my copy of the paperback.

How to add current profile name to the window title

Wednesday, May 21st, 2008

If you use a descriptive text on your profiles you use to startup axapta with, you have here another way of a very clear presentation of which installation, db, etc settings you are running under.
(more…)

How to colour code different companies inside axapta

Wednesday, May 21st, 2008

During development and test we often switch between different companies in our installation. To not mistaken us, so we always make changes in the correct one, we made this small change in the code. With different background-colours for each company, you never delete something importent by mistake. This example shows how it could be done.
(more…)