Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
ahammadshafi
Creator
Creator

Selecting in a list box using another list box

Dear Experts:

In the original client source file there are 6 currencies - they are populated in a list box; named "Currency". But the client wants that users will have another list box (named "InLineCurrency") which will have a fixed sub set of the 6 currencies and a new one named "LC" (Local Currency).

The requirement:

1. If the user selects "LC" from "InLineCurrency" no item will be selected in "Currency" listbox.

2. If the user selects "USD" from "InLineCurrency", "USD" will be selected in "Currency" listbox.

Please find a sample QVW file as attachment.

Regards,

Shafi

1 Solution

Accepted Solutions
adamdavi3s
Master
Master

Ok here is an example with the IF as well, which will obviously improve things if you want to add more to your inline.

Note that we use actions on both the select AND on change to handle this.


And these are in settings > document properties > triggers, in case you haven't used them before.

View solution in original post

15 Replies
adamdavi3s
Master
Master

Hi Shafi,

I would probably use a field trigger for this.

I will make an example.

ahammadshafi
Creator
Creator
Author

Hi Adam:

I am looking forward to the example; thanks.

Shafi

adamdavi3s
Master
Master

Here you go, You could also use different formula to do this if you wanted e.g if selection = LC select nothing, else select InLineCurrency as they are the same

adamdavi3s
Master
Master

Ok here is an example with the IF as well, which will obviously improve things if you want to add more to your inline.

Note that we use actions on both the select AND on change to handle this.


And these are in settings > document properties > triggers, in case you haven't used them before.

ahammadshafi
Creator
Creator
Author

Hi Adam:

Many thanks. You are absolutely right, I didn't use field trigger before.

Shafi

tamilarasu
Champion
Champion

Hui Ahammad,

You can simply try like below screenshot.

Capture.PNG

adamdavi3s
Master
Master

No problem, they're very useful but a pain when you're debugging and forget that they are there!

ahammadshafi
Creator
Creator
Author

Many thanks Nagaraj.

That's an even better solution ...

ahammadshafi
Creator
Creator
Author

Many thanks Adam for mentioning it.