Add Base Enum in to the Dialog in Dynamic AX

Create a EDT name it Gender then in properties enumType : //select the enum name
Use the below code and enjoy.
static voidSimple_Dialog (Args _args)
dialog dialog;
dialogGroup dialogGroup;
dialogField dialogField;
dialog = newDialog(“Simple Dialog”);
dialogField = dialog.addField(extendedTypeStr(Gender));
if (
print dialogField.value();

TRY Below

static void CreateRadio(Args _args)
Dialog dialog = new Dialog();
DialogField dialogField;
FormRadioControl formRadioControl;
dialogField = dialog.addField(EnumStr(Sex));
//instead of Sex give your enum name
formRadioControl = dialogField.control();
formRadioControl.helpText(“Sample Dialog”);;

3 Responses

Leave a Reply

Your email address will not be published. Required fields are marked *