
Hi Experts! Greetings!
So, I want to set a value to a form control. How can I do that?
Because, looking back from AX2012, the .value() function does not exist anymore (FormControlName.value(ValueToSet))
If the field is an unbound field and you have set autoDeclaration to Yes, you can assign an initial value according to the type of field by looking at the list below.
FormStringControl1.text("testStringControl");
FormStaticTextControl1.text("testStaticTextControl1");
FormIntegerControl1.value(3);
FormRealControl1.realValue(3.4);
FormRadioButtonControl1.enumType(enumNum(NoYes));
FormRadioButtonControl1.selection(NoYes::Yes);//NoYes
FormStringEdtControl2.text("testAccountName");//AccountName
FormCheckBoxControl1.value(NoYes::Yes);
FormComboBoxEnumControl1.selection(SalesType::Sales);