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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 02.12.2016, 04:21   #1  
Blog bot is offline
Blog bot
Участник
 
25,640 / 848 (80) +++++++
Регистрация: 28.10.2006
stoneridgesoftware: Form event handlers in Microsoft Dynamics 365 for Operations (AX7)
Источник: https://stoneridgesoftware.com/form-...perations-ax7/
==============

*Please note: New Dynamics AX (AX 7) has been renamed Dynamics 365 for Operations.

In Microsoft Dynamics 365 for Operations (AX7), the preferred mechanism for reacting to the actions on a form is through eventing. Events on a form are located at the form level, on the datasources, on the fields within the datasources and on the controls within the form’s design. The events available are very similar to the methods available on forms in previous versions of AX.

Below is an example of how to react to an event on a form containing the CustTable datasource:

1. Open the form designer for a form containing CustTable as a datasource.
2. Expand the CustTable datasource and find the Blocked field.
3. Under the Blocked field expand the Events node and find the OnModified event.
4. Right-click OnModified and choose Copy event handler method.
5. In the Solution Explorer right-click on your project name and choose Add > New Item
6. In the form that opens click Code and select Class
7. Name the class and click Add
8. In the code editor for the class between the curly brackets, right-click and choose Paste
***A method should be added that has a FormDataFieldEventHandler attribute
9. In the newly added method add the following code:
info(“Blocked field modified”);
10. Save and build your solution.
11. Run the form.
12. In the running form, click the Edit button and change the blocked field on one of the records and note the infolog comment towards the top of the form just below the action pane.



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

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
crminthefield: Podcast and Overview: Microsoft Dynamics CRM 2011 Update Rollup 12 Blog bot Dynamics CRM: Blogs 0 30.01.2013 01:11
dynamicsaxtraining: Vendor returns Blog bot DAX Blogs 0 11.10.2012 00:11
Microsoft Dynamics NAV Database Archive for all Country Versions Blog bot Dynamics CRM: Blogs 0 11.03.2011 18:43
axStart: Microsoft Dynamics AX 2009 Hot Topics Web Seminar Series Blog bot DAX Blogs 0 06.08.2008 12:05

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

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

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 13:43.