AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 27.12.2006, 17:20   #1  
Blog bot is offline
Blog bot
Участник
 
25,584 / 848 (80) +++++++
Регистрация: 28.10.2006
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
  •  Class
  • DataArea
  • Domain
  • EnumValue
  • Field
  • Index
  • Interface
  • List
  • Table
  • User
  • UserGroup
     These list can be found under Global class prefixed with Pick, the return type of these functions depend on the type of list you choose to work with. Say for example the following code would create a new instance of the table choose by the user, based on the id of the table returned by PickTable() method.
                                                    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
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
Creating Custom Dynamics AX Services Blog bot DAX Blogs 0 17.12.2008 12:05
casperkamal: Creating new Syscontext Menu in Dynamics Ax 4.0 Blog bot DAX Blogs 0 06.06.2007 10:07
casperkamal: List of Whitepaper and resources for Dynamics Ax Blog bot DAX Blogs 0 29.05.2007 21:21
casperkamal: Creating graphs in Dynamics Ax Blog bot DAX Blogs 1 10.04.2007 21:39
casperkamal: Creating custom Picking list in Dynamics - Part II Blog bot DAX Blogs 0 22.03.2007 21:41

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 01:12.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.