|
27.12.2006, 17:20 | #1 |
Участник
|
casperkamal: Creating a Custom Display List -
Источник: http://casperkamal.spaces.live.com/B...CD63!191.entry
============== When you open SysTableForm directly you would get to see a Small List form getting displayed which will populate all the available table names in Axapta (see Fig one below), once you select your choice the flow further continues, this article would delve in detail about using those inbuilt list or creating such a custom list in Ax applications. Ax Provides the following inbuilt list
i = Global::pickTable(); if (i) { //make sure you perform this check to avoid stack trace error print new SysDictTable(i).name(); pause; } Instead if you want to create a custom list, then all you need is a map where you need to add all the values that you want to appear on the list and then pass the map to the function, which would deliver you the custom list, something as seen below…… Map map = new Map(Types::String, Types::String); ; //The Value is displayed in the List and the Key corresponding to is returned, //make sure your values are also unique so that they don’t confuse the user map.insert('Item1', 'Light'); map.insert('Item2', 'Pen'); map.insert('Item3', 'Note'); print pickList(map, 'CustomList', 'Items'); pause; ................................ heee heee Источник: http://casperkamal.spaces.live.com/B...CD63!191.entry |
|
|
|