web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Dialog --> select company from list

(0) ShareShare
ReportReport
Posted on by

Hi!

I have to create job which needs inputs from dialog (TransDateTime and AreaId)

The part with date is finished:

static void test(Args _args)
{

Dialog dialog;

DialogField fieldLastSynchDate, fieldCompanyId;

dialog = new Dialog("My Dialog");

dialog.addText("Choose synchronization date:");

fieldLastSynchDate = dialog.addField(extendedTypeStr(TransDateTime));

dialog.run();

if (dialog.closedOk())
{

//ACTION

}

else return;

}

How to create ComboBox or something else where i could select existing companies ??

Thank you in advance :)

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Vilmos Kintera Profile Picture
    46,149 on at

    dialog.addField(extendedTypeStr(dataAreaId));

  • Community Member Profile Picture
    on at

    I can't  believe it was so easy ;/

    But it touch very interesting issue... Every EDT have specific "input type"... In my case TransDateTime has calendar input and dataAreaId has Combobox... Which parameter is responsible for this ability ??

  • Verified answer
    Vilmos Kintera Profile Picture
    46,149 on at

    EDTs which extend Base enum are enumeration-based, which is a combo box form control.

    Some specific EDTs could be bound to a lookup form, such as dates to a calendar custom lookup form.

  • Community Member Profile Picture
    on at

    Is it possible that the ComboBox have multiselect options ??

  • Verified answer
    Vilmos Kintera Profile Picture
    46,149 on at

    You can hook in the syslookupmultiselectctrl class in the dialog after it has been constructed, against your control:

    daxtechies.blogspot.hu/.../dialog-in-ax-2012-multiselect-control.html

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans