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)

Dialogbox with radiobutton

(0) ShareShare
ReportReport
Posted on by

Hi,

I want to create a simple dialog box, with radiobutton based on a enum.

I found the following code on the web, but the result is a dialogbox with a combobox instead of a radiobutton:

static void CreateRadio(Args _args)
{
Dialog dialog = new Dialog();
DialogField df;
FormRadioControl frc;
;
df = dialog.addField(EnumStr(projUpdateSubProjStage));
frc = df.control();
frc.helpText("Project status");
dialog.run();
}


And then how can i retreive the response of the dialogbox into a variable?

Can someone help me please

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    237,976 Most Valuable Professional on at

    The code is wrong - the type of control is FormBuildComboBoxControl, not FormRadioControl. But it wouldn't help you anyway.

    Do this: create a new EDT based on the enum and set its Style property to "Radio button". Then use this EDT in the dialog.

    FormRadioControl

  • Community Member Profile Picture
    on at

    Thanks Martin, it worked

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