In my ComboBox
there are items like A B C D
and bydefault the value is A
where i want to make it as C
something like comboBox.comboType(2)
in the init form, but this doesnt seems to work.
May be ComboBox.selection(2)
helps, m not sure, Kindly help.
You can use this code in the form's init
method after super()
:
ComboBoxName.selection(ComboBoxName::DefaultValue);
If this is a table field I'd suggest overriding the initValue
method in the table:
this.ComboBoxName = ComboBoxName::DefaultValue;
Override initValue
in the form's datasource only if it should be a specific behaviour in this form only.