Показать сообщение отдельно
Старый 21.11.2019, 00:20   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
Operating with system defined buttons in form Action pane
Источник: http://alexvoy.blogspot.com/2019/11/...d-buttons.html
==============

Say, we have to reference Edit button.



For this we use the macro #define.SystemDefinedViewEditButton('SystemDefinedViewEditButton')

The whole list is present in SysSystemDefinedButtons macro


Code snippet for your active method in name_DS

int active()
{

#SysSystemDefinedButtons

ret = super();

< ... >
FormCommandButtonControl editButton = element.control(element.controlId(#SystemDefinedViewEditButton)) as FormCommandButtonControl;
editButton.enabled(name_ds.allowEdit());

return ret;
}


Check this article https://docs.microsoft.com/en-us/dyn...efined-buttons


Источник: http://alexvoy.blogspot.com/2019/11/...d-buttons.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.