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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 27.08.2007, 22:10   #1  
Blog bot is offline
Blog bot
Участник
 
25,459 / 846 (79) +++++++
Регистрация: 28.10.2006
casperkamal: Preventing a form getting added to "LastActivated Form" in Dynamics Ax
Источник: http://casperkamal.spaces.live.com/B...CD63!325.entry
==============


     
The Class "Infolog" has few methods corresponding to "Last activated form" like
 
                       - activate
                      -  setLastActivatedForm
                      -  parmLastActivatedForm
                      -  close
 
     These methods help in you knowing, setting or getting the currently active form.
 
       Say you have a form like "Toolbar" or  "Popup" form like Alerts or "Find" then you would prefer to prevent these form from being added to the lastactivated form. In such cases all you have to do is go to the "activate" method in infolog and add the following code

    if (formRun.name() != formstr(DocuView) &&
        formRun.name() != formstr(sysFormSearch) &&             
        formRun.name() != formstr(EventAttentionGrabber) &&
        //added by kamal

        formRun.name() != formstr(MyForm)        
       )
    {
        this.setLastActivatedForm(formRun);
    }


  This would skip adding your form to the last activated form list.
...................

Источник: http://casperkamal.spaces.live.com/B...CD63!325.entry
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
Старый 27.08.2007, 23:17   #2  
kashperuk is offline
kashperuk
Участник
Аватар для kashperuk
MCBMSS
Соотечественники
Сотрудники Microsoft Dynamics
Лучший по профессии 2017
Лучший по профессии 2015
Лучший по профессии 2014
Лучший по профессии 2011
Лучший по профессии 2009
 
4,361 / 2084 (78) +++++++++
Регистрация: 30.05.2004
Адрес: Atlanta, GA, USA
Вот если б еще кто-то рассказал, какую выгоду я могу из этого извлечь.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
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
axStart: Microsoft Dynamics AX 2009 Hot Topics Web Seminar Series Blog bot DAX Blogs 0 06.08.2008 12:05
casperkamal: A simple "Toolbar" for Dynamics Ax 4.0 Blog bot DAX Blogs 9 29.03.2007 13:18
casperkamal: InventDim id blank from "Axapta" to "AllBlank" in Dynamics Ax Blog bot DAX Blogs 4 27.02.2007 10:36
casperkamal: Check out "AxspacesInvader" Game for Dynamics Ax Blog bot DAX Blogs 0 23.02.2007 23:03
Опции темы Поиск в этой теме
Поиск в этой теме:

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

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

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

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