Good day everyone,
Just leaving a quick tip. Sometimes for whatever reason we might need to hide the Cancel button or just disable it depending on a certain condition.
The following piece of code shows only the part where you should overwrite the method, if you need instruction about how to create a dialog please check my post How to: Create a simple Dialog through X++ .
Overwrite method Dialog():
Object dialog()
{
FormBuildCommandButtonControl cancelButton;
;
dialog = super();...(read more)
↧