O'Reilly logo

Microsoft Dynamics AX 2009 Programming: Getting Started by Erlend Dalen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating your first AX program

To make the HelloWorld example, we simply open the AOT by pressing Ctrl + D from anywhere in the main Dynamics AX window or by clicking on the AOT button in the top menu, as shown in the first screenshot in this chapter.

Go to the Jobs node in the AOT, right-click on it, and select new Job.

Check if the Job opens automatically.

A new X++ editor window will open showing a new Job:

static void Job1(Args _args)
{
}

As a Job is static and has an input parameter of the Args class, it can be run directly. Obviously, the previous example doesn't do anything, it simply edits the job. It will display a HelloWorld message on the Print WINDOW while running the job by clicking on the Go button or by pressing F5.

static void HelloWorld(Args ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required