How can you create a simple dialog box in Dynamics ax?
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.
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.
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());
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With