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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 09.07.2008, 22:05   #1  
Blog bot is offline
Blog bot
Участник
 
25,459 / 846 (79) +++++++
Регистрация: 28.10.2006
gatesasbait: How to define a custom lookup form for an extended datatype
Источник: http://gatesasbait.spaces.live.com/B...B9F5!237.entry
==============

 
Good morning, continuing on the topic of various custom lookup how-tos,
 
Normally, the relation specified on an extended datatype defines its lookup method, however, it is possible to override that with a custom lookup to use automatically everywhere that datatype is used. This way, you don't need to override lookup methods on every individual forms.
 
Create a new Form, called SalesIdLookup maybe. On the SalesId datatype, for property 'FormHelp' pick your newly created lookup form. To be simple, your lookup form should be a standard one grid, non-resizable form.
In code, specify the lookup control in the init() of your form (right after super()):
element.selectMode(SalesTable_SalesId); //For example, this refers to the column of your lookup that users should click on.
 
On your lookup form's design, specify the following properties:
[WindowType = Popup],
[Frame = Border],
[HideIfEmpty = No]
 
Et voila, everywhere the SalesId datatype will be used, your lookup form will be automatically invoked.


Источник: http://gatesasbait.spaces.live.com/B...B9F5!237.entry
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
gatesasbait: How to temporarily suppress infolog messages in Dynamics Ax (deux) Blog bot DAX Blogs 7 28.01.2009 17:45
gatesasbait: "Go to the Main Table Form" differences between Axapta 2.x and Dynamics AX 4 Blog bot DAX Blogs 0 12.08.2008 19:05
gatesasbait: Custom label on SysTableLookup column Blog bot DAX Blogs 0 09.07.2008 22:05
comRows.HorizontalAlignment() Omeo DAX: Программирование 9 26.04.2004 12:13
Говорят вышел SP2 для Axapta 3. Кто нибуть что знает на эту тему? soin DAX: Прочие вопросы 10 13.10.2003 10:43
Опции темы Поиск в этой теме
Поиск в этой теме:

Расширенный поиск
Опции просмотра

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

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

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