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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 14.11.2012, 14:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,643 / 848 (80) +++++++
Регистрация: 28.10.2006
Malaysia: Building a selected/available list
Источник: http://axmas.blogspot.com/2012/11/bu...able-list.html
==============


1. In the AOT, create a new table named InventBuyerGroupList. Do not change any of
the properties as this table is for demonstration only.


2. Add a new field to the table with the following properties (click on Yes if asked to add
a new relation to the table):

Property Value
Type String
Name GroupId
ExtendedDataType ItemBuyerGroupId


3. Add another field to the table with the following properties:

Property Value
Type String
Name CustAccount
ExtendedDataType CustAccount

4. In the AOT, open the InventBuyerGroup form and change the design properties
as follows:

Property Value
Style Auto

5. Add a new Tab control with the following properties, to the bottom of the design:

Property Value
Width Column width
Height Column height

6. Add a new TabPage control with the following properties to the newly created tab:

Property Value
Name BuyerGroups
Caption Buyer groups

7. Add another TabPage control with the following properties to the newly created tab:

Property Value
Name Customers
Caption Customers


8. Move the existing Grid control to the first tab page and hide the existing Body group
by setting the property:

Property Value
Visible No

9. The form should look similar to the following screenshot:



10. Add the following line to the form's class declaration:
SysListPanelRelationTable sysListPanel;

11. Override the form's init() method with the following code:

public void init()
{
container columns;
#ResAppl
columns = [fieldNum(CustTable, AccountNum)];
sysListPanel = SysListPanelRelationTable::newForm(element, element.controlId(
formControlStr(InventBuyerGroup,Customers)), "Selected", "Available", #ImageCustomer,


tableNum(InventBuyerGroupList), fieldNum(InventBuyerGroupList,CustAccount),
fieldNum(InventBuyerGroupList,GroupId), tableNum(CustTable),
fieldNum(CustTable,AccountNum), columns);
super();
sysListPanel.init();
}


12. Override the pageActivated() method on the newly created Customers tab page
with the following code:

public void pageActivated()
{
sysListPanel.parmRelationRangeValue(InventBuyerGroup.Group);
sysListPanel.parmRelationRangeRecId(InventBuyerGroup.RecId);
sysListPanel.fill();
super();
}

13. In order to test the list, open Inventory and warehouse management | Setup |
Inventory | Buyer groups, select any group, go to the Customers tab page and use
the buttons provided to move records from one side to the other. You could also do a
double-click or drag-and-drop with your mouse:









Источник: http://axmas.blogspot.com/2012/11/bu...able-list.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
Malaysia: List Blog bot DAX Blogs 0 29.10.2012 19:11
Microsoft Dynamics CRM Team Blog: Marketing with Dynamic List Blog bot Dynamics CRM: Blogs 0 09.11.2010 19:05
CRM Programmer: On form load set some selected value for related entity pick-list Blog bot Dynamics CRM: Blogs 1 04.12.2009 09:23
Microsoft Dynamics CRM Team Blog: List Web Part for Microsoft Dynamics CRM 4.0 Deployment Scenarios Blog bot Dynamics CRM: Blogs 0 30.01.2009 22:05
Kashperuk Ivan: List panels in Dynaics AX - a short description of SysListPanel class Blog bot DAX Blogs 1 21.10.2007 22:51

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

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

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 01:28.