I tried the initializer on the Combobox when creating my form dynamically and it did not appear to work.
I was able to initialize the combox box using ui.ComboBox.forName("column_name").
So should the initializer (example: CALL combobox_node.setAttribute("initializer","mtformcombo")) work if it is added to a form created for a dynamic dialog?
Thanks.
Candy
Hello Candy,
no, the combobox initializer is not called when creating a combobox dynamically.
The runtime calls the combobox initializer function if and only if a DISPLAY FORM (or an OPEN WINDOW WITH FORM) statement has been called. Those statements add the form to the AUI tree.
Rene
Very good. Thank you Rene for the clarification.
Candy