Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can you create a simple dialog box in Dynamics AX?

Tags:

axapta

x++

How can you create a simple dialog box in Dynamics ax?

like image 908
James Moore Avatar asked Dec 07 '10 17:12

James Moore


People also ask

How do you create a dialogue form?

To create the dialog formRight-click the form, and then click Properties. The property sheet for the form appears. In the property sheet, click Name and then type a unique name for the form. Expand the form node, expand Designs, and then click Design.

How do I create a workflow in Ax?

Open the workflow editor The Microsoft Dynamics AX module that you are working in determines the types of workflow that you can create. Follow these steps to select the type of workflow to create and to open the workflow editor.


1 Answers

static void DialogSampleCode(Args _args)
{
    Dialog      dialog;
    DialogField field;
    ;
    dialog = new Dialog("My Dialog");
    dialog.addText("Select your favorite customer:");
    field = dialog.addField(typeid(CustAccount));

    dialog.run();
    if (dialog.closedOk())
    {
        info(field.value());
    }
}
like image 143
James Moore Avatar answered Oct 21 '22 07:10

James Moore