Источник:
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