How to create edt lookup in dialogbox in dynamics ax

Description:-

Here we will see how to create EDT Lookup in Dialog. Here I have created job for display lookup in dialog when I run this job that dialog will create and inside  my lookup will be there from EDT.

Code:-

static void DialogSampleCode(Args _args)
{
    Dialog      dialog;
    DialogField field;
    ;
    dialog = new Dialog("My Dialog");
    dialog.addText("Select your favorite customer:");
    field = dialog.addField((extendedTypeStr(CustAccount)));
 
    dialog.run();
    if (dialog.closedOk())
    {
        info(field.value());
    }
} 

Related Posts

Previous
Next Post »

Thanks for comments.....