Monday, May 18, 2009

MS Dynamics AX 2009 Benchmark tool

Microsoft performance team have created a benchmark tool to carter the performance of specific objects in dynamics ax 2009. The tool can be found at
http://benchmarktoolkit.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=24874

Sunday, January 11, 2009

Getting a row count from datasource

Query: How to get the total row count from form datasource.

Answer: use datasource.numberOfRowsLoaded()

Sunday, November 16, 2008

Financial posting in dynamics ax

Question: How to use the exisitng posting to ledger API. Is there any documentation available.

Answer: The API documentation can be found at http://download.microsoft.com/download/d/b/a/dba4455a-25c1-495c-bad2-3b316e0e2434/PostToLedger.pdf . Also I have written a blog entry for this you can check that out as well.

Friday, November 14, 2008

Inside Dynamics AX 4.0 Free eBook download at microsoft

The best technical resource available for Dynamics AX 4.0 programming is available for free download. Please download it from here . It is a must read.

How to catch key stokes in Dynamics AX

Question: I want to catch key strokes from the dynamcis ax form. How can I do it?
Answer: Override the task() method of the form and add a case in the switch method to check the keystroke. The task macro is available in the macro library that can be used to catch different events.

Friday, November 7, 2008

LIKE statement in Dynamcis AX

Question: How can we use like statement in Dynamics AX.
Answer: We can use 'like' clause in Dynamics AX statement by using '*' in the wild cards.
static void likeStatement(Args _args)
{
CustTable custTable;
;
while select custTable where custTable.Name like '*The*'
{
print custTable.Name;
}
pause;
}

In order to use linke statement in query use the '*' wild card in the query ranges. Something like the following,
static void likeQuery()
{
Query query = new Query();
QueryRun queryRun;
;
query.addDataSource(tableNum(CustTable)).addRange(fieldNum(CustTable, AccountNum)).value('400*');
queryRun = new QueryRun(query);
if(queryRun.next()) {
purchTable = queryRun.get(tableNum(CustTable));
print custTable.AccountNum;
pause;
}

Tuesday, August 5, 2008

Dynamics AX Development Training Plan

Below is a training plan i normally use to train new developers in my firm.
Task No Task Description
1.Installing AX, AX 4.0 Development Mock 1
2.Morphx IT, Chapter 3 – Data Dictionary
3. Inside Dynamics AX , Chapter 12 – The Database Layer
4.Morphx IT, Chapter 5 – Classes
5.Inside Dynamics AX, Chapter 5 – The X++ programming language
6.Morphx IT, Chapter 6 – Forms
7.Morphx IT, Chapter 7 – Reports
8.Inside Dynamics AX, Chapter 6 – Customizing Microsoft Dynamics AX
9.Inside Dynamics AX, Chapter 7 – Extending Microsoft Dynamics AX