Showing posts with label performance. Show all posts
Showing posts with label performance. Show all posts

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

Saturday, August 25, 2007

Display method in code

Scenario: Can i use display methods in X++ code. I mean if i have a display method getStatus() on table Vend. I can use it like vend.getStatus(). Is it a violation of best practice what are the pros and cons.

Answer: No, there is no performance penalty and no best practice warning is issued.
So you can go ahead and use the display methods in code.
The only difference from a non-display method is that you can actually use them in forms and reports.

Snippet:
Add as display method getStatus() in the CustTabl method list.

public display boolean getStatus()
{
return true;
}

Use this method in the field group and in the code simultaneously.

public void processCustomerStatus()
{
if (this.getStatus())
{
this.write();
}
else
{
info("Consider status");
}
}