X++ code to get Yes/No dialog window
This code will help you to get Yes/No dialog window any where in run time
Code :-
class BASDialogBoxYesNo
{
/// <summary>
/// Runs the class with the specified arguments.
/// </summary>
/// <param name = "_args">The specified arguments.</param>
public static void main(Args _args)
{
Dialogbutton db;
;
db = box::yesNo("Choose Yes or No", dialogButton::Yes, "Proceed or Dont");
if (db == dialogButton::Yes)
{
info( "We chose Yes");
}
else if (db == dialogButton::No)
{
info( "We chose No");
}
}
Example :-
Comments
Post a Comment