Показать сообщение отдельно
Старый 10.08.2016, 17:40   #3  
gl00mie is offline
gl00mie
Участник
MCBMSS
Most Valuable Professional
Лучший по профессии 2017
Лучший по профессии 2015
Лучший по профессии 2014
Лучший по профессии AXAWARD 2013
Лучший по профессии 2011
Лучший по профессии 2009
 
3,684 / 5803 (201) ++++++++++
Регистрация: 28.11.2005
Адрес: Москва
Записей в блоге: 3
%$#ть! вот это круто
Цитата:
Some classes on AX have their methods as “protected” and this blocks the possibility of the use of “event handler”.
Customize the class, before the declare of the method use the attribute Hookable = true as below:
X++:
[HookableAttribute(true)]
protected void loadModule()
{
With the hookable attribute as “true” now you have the option to create the event handler.
Какой смысл клепать свои пре-/пост-обработчики, если для этого нужно поднять стандартный метод на свой слой разработки?..
За это сообщение автора поблагодарили: AlGol (2), Lemming (5), Logger (1), iCloud (2).