Quantcast
Channel: Microsoft Dynamics 365 Community
Viewing all articles
Browse latest Browse all 17314

How to: Hide or disable ‘Cancel button’ on dialog

$
0
0
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)

Viewing all articles
Browse latest Browse all 17314

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>