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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 24.03.2004, 10:54   #1  
paucer is offline
paucer
Участник
 
24 / 10 (1) +
Регистрация: 11.11.2003
Адрес: Kaunas
? filter on a form - how?
I need add some functionality to a form, but only when filtering is enabled.
How can i check this?
Form's datasource has mathod filter(), but it seems this method isn't invoked, when user press filter shortcut button or press CTRL+F3 or filter from context menu. I tried to use prompt() method, but it isn't invoked when filtering is started via context menu. And i need do additional calculation, when the filter is enabled or is being disabled - removeFilter() works ok.
So how can I manage filtering?
At least i must know if fitering is turned on or off.
Старый 25.03.2004, 13:20   #2  
rumpleteazer is offline
rumpleteazer
Участник
 
127 / 28 (1) +++
Регистрация: 02.09.2002
To intercept pressing of filter button, you should use task-method on a form. The input parameter for this method is task-event id. Filter event id is 2837, but you should better use macro Task (#taskFilter).

Example:

public int task(int _p1)
{
#Task
int ret;

if(_p1 == #taskFilter)
{
// you code handling filter-event goes here
}
ret = super(_p1);

Return ret;
}
__________________
С уважением, Rumpleteazer.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
DeniZone: How to tell if a form was opened with 'Go to main table' function Blog bot DAX Blogs 0 17.02.2009 19:05
gatesasbait: How to define a custom lookup form for an extended datatype Blog bot DAX Blogs 0 09.07.2008 22:05
hariprasadp: Grid Filter while open a form in Dynamics AX Blog bot DAX Blogs 0 07.05.2008 15:05
axaptafreak: Automatically open grid filter when opening form Blog bot DAX Blogs 2 20.06.2007 18:36
Говорят вышел SP2 для Axapta 3. Кто нибуть что знает на эту тему? soin DAX: Прочие вопросы 10 13.10.2003 10:43
Опции темы Поиск в этой теме
Поиск в этой теме:

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

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

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

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