Another way of displaying custom options

The global system functions, such as pickList() , pickUser() , and so on, allow developers to build various lookups displaying a list of custom options. Besides that, the standard Dynamics AX application contains a few more quite useful functions, allowing us to build more complex lookups of custom options.

One of the functions is called selectSingle() , and it presents the user with a list of options. It also displays a checkbox next to each option, allowing users to select the option. To demonstrate this, we will create a new job that shows the usage of this function.

How to do it...

  1. In the AOT, create a new job named SysListSelectSingle:
    static void SysListSelectSingle(Args _args) { container choices; container ...

Get Microsoft Dynamics AX 2012 Development Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.