Monday, September 10, 2007

Tuesday, September 4, 2007

Code Coverage of Table Level Methods

In order to enable code coverage you have to follow some naming conventions or override a specific method on your test class:Naming convention: TableName + Test or simply override the testsElementName() method and returnthe name of your table.(also, override the testsElementType and return UtilElementType::Table;

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.