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

Setting up multiple buttons to create combined selections in a table

Hi there,

How to configure two or more Buttons in a way that each of their corresponding selections values are added to the current selection of a table?

Behaviour should be working like  a mouse in a Listbox holding down the STRG Key to select/unselect values.)

Example:

Field is called "Colours", containing values i.e. "RED, BLUE, GREEN, YELLOW, BLACK, ...."

Want to combine many buttons such as:

Buttons:  "Select RED"     "Unselect RED"    

Buttons:  "Select BLUE"   "Unselect BLUE"

Buttons: "Select GREEN"   "Unselect Green"

Clicking on the "Select RED" button should select all REDs in my table "Colours".

Expected result: REDs are listed (easy)

Clicking on the "Select BLUE" button should select all BLUEs in addition to the existing selection. In this case containing all the already selected REDs as well.

Expected Result: REDs AND BLUEs are listed

Clicking on the "Select GREEN " button should select all BLUEs in addition to the existing selection. In this case containing all the already selected REDs and BLUEs as well.

Expected Result: REDs AND BLUEs AND GREENs are listed.

...to be continued with many more buttons...

Clicking on the "Unselect RED" button should unselect all REDs from the existing selection.

Expected Result: BLUEs AND GREENs are listed.

How to achieve that?

Any help is much appreciated.

Many thx in advance

Josi

1 Solution

Accepted Solutions
MarcoWedel

Hi,

maybe like this:

QlikCommunity_Thread_198725_Pic3.JPG

QlikCommunity_Thread_198725_Pic4.JPG

hope this helps

regards

Marco

View solution in original post

4 Replies
MarcoWedel

Hi,

I guess this could be achieved with some variables, expressions to create search strings and field selection actions.

On the other hand you might as well use a ListBox with selection style "LED or windows check boxes":

QlikCommunity_Thread_198725_Pic1.JPG

QlikCommunity_Thread_198725_Pic2.JPG

hope this helps

regards

Marco

Not applicable
Author

Hi Marco,

Thx for your quick answer.

Of course, this is some sort of good workaround.

If one is going into your direction, two questions come to my mind:

1st) How to reduce/define "Colours"  to be selected in the LED-Listbox (as their might be many more entries one does not care about)?

2nd) How selected/unselect different values in a convenient way, if one has no Keyboard/Mouse (i.e. on a tablet)?

Thx for your ideas.

Jörg

MarcoWedel

Hi,

maybe like this:

QlikCommunity_Thread_198725_Pic3.JPG

QlikCommunity_Thread_198725_Pic4.JPG

hope this helps

regards

Marco

Not applicable
Author

Hallo Marco,

Thank you very much.

This is a marvellous Workaround.

Even on an iPad touching the filter works.

Good hint!

Regards,

Jörg