Subscribe

RSS Feed (xml)

Powered By

Skin Design:
Free Blogger Skins

Powered by Blogger


Monday, September 5, 2011

Example Dynamics 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 _args)
{
print "HelloWorld";
pause;
}
The pause statement will halt the execution of the program and ask you if you would like to proceed. It is shown in this example just so that you see what the Print WINDOW displays. If the pause statement hadn't been put here the Print WINDOW would print HelloWorld and just close again in a blink of an eye.

1 comment:

  1. I accept there are numerous more pleasurable open doors ahead for people that took a gander at your site
    CRM Software
    Business Management Software

    ReplyDelete

Archives