Update Listbox after Combobox selection changed - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

m.ono
Posts: 14
Joined: Thu Feb 16, 2012 10:12 pm

Update Listbox after Combobox selection changed

Hey everybody -

Here is another topic which I seek a solution for but couldn't find a proper answer to somewhere else:

I am using the Twin-Dialog method to get my list fields updated as soon as I press a button. This however does not help me when I want to update a listbox if the event is not triggered by a button but by e.g. a combobox or a checkbox. Those controls do not seem to have actions to allow for switching to a new dialog such as to the twin dialog.

So how can this be solved?

Thanks and best regards,
Martin
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Update Listbox after Combobox selection changed

Hi Martin,

Here's a similar thread you may find useful.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
m.ono
Posts: 14
Joined: Thu Feb 16, 2012 10:12 pm

Re: Update Listbox after Combobox selection changed

Thanks again, Mihai, for the quick reply.

It works for the checkbox*, but I will also need the update of a listbox when I change the selected value through a combobox. The Published Event tab field is greyed out for the combobox control however so that I can neither launch an action, nor set a property.

So, how can I do the same thing with the combobox?

Thanks and best regards,
Martin

*The checkbox allows me to modify the property [AiRefreshDlg].
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Update Listbox after Combobox selection changed

Hi Martin,

Unfortunately the same functionality is not supported by combobox in Enhanced UI.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
m.ono
Posts: 14
Joined: Thu Feb 16, 2012 10:12 pm

Re: Update Listbox after Combobox selection changed

Dear Mihai -

Frankly your answer is a bit disappointing. Is there some sort of a workaround other than using a 'refresh-button' next to the combobox?
Also, it might help if I understood why a combobox is lacking a feature that a listbox for instance has.

Thanks and best regards,
Martin
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Update Listbox after Combobox selection changed

Hi Martin,

Unfortunately this is a limitation in the Windows Installer engine, so there's not much we can do about it. Combo box control cannot publish events, so they cannot notify other controls that the selected value has changed.

You can either use a different control which can publish events or try to change the design to avoid a combo box control.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”