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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 16.07.2018, 21:13   #1  
Blog bot is offline
Blog bot
Участник
 
25,459 / 846 (79) +++++++
Регистрация: 28.10.2006
stoneridgesoftware: Dynamics 365 for Finance and Operations: More Than One Form Was Opened at Once for the Lookup Control
Источник: https://stoneridgesoftware.com/dynam...ookup-control/
==============

In Dynamics 365 for Finance and Operations, when subscribing to a lookup event to modify an existing lookup on a form control, you must remove the super call to the existing lookup. Otherwise, when clicking on the control a message will display stating, “More than one form was opened at once for the lookup control.” An example of the message is shown in the upper right corner of the image below.



The following steps can be utilized in the lookup event to cancel the super call of the original lookup:
  1. Declare a new variable of type FormControlCancelableSuperEventArgs.
  2. Initialize the new variable with the current FormControlEventArgs parameter ‘e’ and cast it as type FormControlCancelableSuperEventArgs.
  3. Finally, use the new variable and call the CancelSuperCall() method.
Below is an X++ example of subscribing to a lookup event and canceling the super call.

[FormControlEventHandler(formControlStr(VendCertification, StateId), FormControlEventType::Lookup)] public static void StateId_OnLookup(FormControl sender, FormControlEventArgs e) { // Declare and initialize new variable. FormControlCancelableSuperEventArgs formControlCancelSuper = e as FormControlCancelableSuperEventArgs; //Custom lookup code can go here. // Cancel the super call of lookup control. formControlCancelSuper.CancelSuperCall(); }



Источник: https://stoneridgesoftware.com/dynam...ookup-control/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
stoneridgesoftware: Setting Up Version Control in Dynamics 365 for Operations with Visual Studio Blog bot DAX Blogs 3 07.08.2017 11:35
jaestevan: Microsoft Dynamics 365 for Operations Blog bot DAX Blogs 0 02.11.2016 01:11
dynamicsaxtraining: Purchase Blog bot DAX Blogs 0 11.03.2012 05:25
Platform updates overview - 3.70.B - NAV2009 R2 Blog bot Dynamics CRM: Blogs 0 07.02.2011 22:06
wiki.dynamicsbook: Changes Made in Navision Attain 3.60 Blog bot Dynamics CRM: Blogs 0 02.09.2008 13:23
Опции темы Поиск в этой теме
Поиск в этой теме:

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

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

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

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