D365FO – X++ – create a simple dialog box in Dynamics 365F&O

DialogButton  diagBut;
// Message of the dialog box
str strMessage = "Do you want to proceed with the sales refund processing?";
// Title of the dialog box
str strTitle = "Process Refund Orders" ;

diagBut = Box::yesNo(strMessage, DialogButton::No,  strTitle);
if (diagBut == DialogButton::Yes)
{
    // Your logic if Yes button is clicked
}
else
{
    // Your logic if No button is clicked
}


Comments

Popular posts from this blog

D365F&O - X++ - Best Practice Warning BP Rule: [BPErrorUnknownLabel]: Path:

D365F&O - X++ - How to Enable/Disable button on form based on a condition in D365F&O using Event handlers.

D365FO - X++ - Generate CAR (Customized Analysis Report) report of custom model