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
Post a Comment