Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: Should the initializer on combox boxes work with dynamic dialogs  (Read 7883 times)
Candy M.
Posts: 139


« on: March 28, 2018, 04:27:52 am »

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
Rene S.
Four Js
Posts: 112


« Reply #1 on: March 28, 2018, 07:53:35 am »

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
Candy M.
Posts: 139


« Reply #2 on: March 28, 2018, 01:13:52 pm »

Very good.   Thank you Rene for the clarification.
Candy
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines