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 headers; container selection; container selected; boolean ok; choices = [ ["3.0\nAxapta 3.0", 1, false], ["4.0\nDynamics AX 4.0", 2, false], ["2009\nDynamics AX 2009", 3, false], ["2012\nDynamics AX 2012", 4, true]]; headers = ["Version...