Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Select values in Listbox depending on other Listbox

Hi Community,

I have a problem which already cost me a lot of time and I don't get it.

It would be nice if someone could take a look at the problem and could tell me if it is even possible to realize.

We got a Listbox A and a Listbox B with corresponding information. What we want to is, if a user selects a value in Listbox A the corresponding value from Listbox B should get selected too.

I thought it could work with a trigger, but it's not possible on Listboxes. Has anybody an idea how it could do?

Thank you and have a nice weekend!

6 Replies
Gysbert_Wassenaar

Add the Select in Field action to the OnSelect trigger of the field that you show in the listbox. See the Triggers tab of the document properties window.


talk is cheap, supply exceeds demand
cesaraccardi
Specialist
Specialist

Hi,

I would avoid using triggers based on selections whenever possible, can I ask you why you need to do that?

Regards,

Cesar

Not applicable
Author

Thank you for the help. I will try it and see if it works as wanted.

Not applicable
Author

Thanks for your answer!

It is a point that a customer wants and depending on other selections there are different graphs shown. So if a value in one of these listboxes is selected the other should be selected too. I know it's a bit difficult to see the sense behind it

Why would you avoid the selction based triggers?

Kushal_Chawda

Hi, Go to document properties> triggers>OnAnySelect. Go to the actions.. add action selection > select possible and give filed name.

cesaraccardi
Specialist
Specialist

Hi, sorry for the late answer. Well, I usually avoid using triggers because it's a bit "fragile" in my opinion, the user needs to know about it and you must make sure that the trigger will always work disregarding the selections. So, if is possible to do something in your data model to create the relationship it would be better.

Cheers,

Cesar