Thursday, August 30, 2007

Specifying empty date values

If you want to set a date field to an empty date or need to compare if a date field is empty, you can use the datenull() function. It is a method of the Global class and will simply return 01\01\1900.This leads to more things:

You can write dates in Axapta X++ editor using backslashes, e.g. 14\04\2006
An empty date in Axapta is specified as January 1st, 1900.
You can use methods from the Global class without having to write "Global::". So, you can write "if date == datenull()" and you do not have to write "if date == Global::datenull()". This works with all the methods from the Global class.

Documenting business tasks

A beta-version of the task recorder is available for download from PartnerSource for registered partners of Microsoft Dynamic AX.

The tool is useful in quit many scenarios and we would love feedback from our partners on the usage of it. It can be installed on top of Microsoft Dynamics AX 4.0.