waspy
Posts: 64
Joined: Fri Oct 03, 2008 10:58 am

Combobox action

Dear guys,

Some help with custom UI is needed...

I have one combobox list (master) on the form with several predefined values. There are also two other comboboxes (slave) which values are dependent on the master value.
When selecting a value from master combobox, I'd like certain values to be selected on the slaves. How can I achieve this behaviour? I was looking for Execute custom action event on the combobox control, but didn't find one.

Your help is much appreciated...
Alexei
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Combobox action

Hello Alexei,

In order to achieve what you want you need to add a published event on your master combo box control. Currently the combo box controls don't support published events. We already have this improvement on our TODO list and will be available on a future version of Advanced Installer. Until then, as a workaround you can use a list box control instead your master combo box control.

For example, you can have a list box control like this:
  • Property Name: MASTER
with the following items
  • Text: First item
    Value: first

    Text: Second item
    Value: second
Then, on the above list box control you can add a "Set installer property value" published event like this:
  • Property: [SLAVE_Property_Name]
    Argument: dependent value
    Condition: MASTER = "second"
Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”