isadam_2
asked on
Change combobox values
I need to change the combobox values when a button is clicked, I get this information from another data base.
Do you know what is the code to add or remove this values, or another way to do it???
Do you know what is the code to add or remove this values, or another way to do it???
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Change the ComboBox so it uses formula for choices, and enter COMBOBOX_CHOICES as the formula. Set it to refresh choices on document refresh.
Set the COMBOBOX_CHOICES field's formula to:
@If(@IsDocBeingLoaded; "First deafult choice" : "Second default choice" : "..." : "Last default choice"; COMBOBOX_CHOICES)
In your button, change the current value of COMBOBOX_CHOICES, then refresh the document. The combobox will pick up the new choices that you set in the COMBOBOX_CHOCES field.