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

Popular posts from this blog

How to Create a wizard in x++ d365

how to post trade agreement journals automatically using x++ code

X++ code to CREATE AND POST A TRADE AGREEMENT IN MICROSOFT DYNAMICS 365 in D365 F & O