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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 12.08.2008, 19:05   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
gatesasbait: "Go to the Main Table Form" differences between Axapta 2.x and Dynamics AX 4
Источник: http://gatesasbait.spaces.live.com/B...B9F5!242.entry
==============

 
Good morning,
 
The "Go To Main Table Form" functionality in Axapta used to filter on the child form for the calling record, as well as update as the parent form changed record. In AX 4 that is no longer the case, though child forms opened through menuitem buttons do still behave this way. What happens is that in AX 4, the calling record is no longer passed in args.record() (therefore, linkActive() is no longer triggered on the child datasource); the args members lookupField() and lookupValue() are populated instead with the calling control's information.
 
If for some reason you want to get back to the jumpref() behavior of Axapta 2.x, add the following code to the SysSetupFormRun class new() method. You may want to create a per-user parameter to enable/disable this feature:
 
void new(Args args)
{
    (...)
    SysSetupFormRun formRun;
    ;
 
    if (!args.record() && args.lookupField()
        && SysUserInfo::find().MyNewJumpRef2xNoYesParameter
        && SysDictClass::is(args.caller(), classnum(SysSetupFormRun)))
    {
        formRun = args.caller();
        if (formRun.objectSet() && formRun.objectSet().cursor())
        {
            args.record(formRun.objectSet().cursor());
        }
    }
    
    super(args);
    (...)
}


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

 


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

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

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