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

Thanks for comments.....

:)
:(
hihi
:-)
:D
=D
:-d
;(
;-(
@-)
:P
:o
:>)
(o)
:p
:-?
(p)
:-s
(m)
8-)
:-t
:-b
b-(
:-#
=p~
$-)
(y)
(f)
x-)
(k)
(h)
cheer