Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
aaronnayan
Creator III
Creator III

Select all button

Hi Guys

I need to create a select all button.

I have about 30 individual buttons that each have their own variable that when clicked will add dimensions to a table

An example of one of the buttons=

varible: vShow_IVDT

value: =if(vShow_IVDT=1,0,1)

This new button needs to select all of them

It needs to select all variables

I also need another button the Deselects all of them

Please can anyone help really struggling and it looks simple but very confusing

1 Solution

Accepted Solutions
Kushal_Chawda

for 30 button, set vShow_IVDT values from 1 to 30,


to select all, create button, set variable vShow_IVDT =1


to deselect all, create button,  set variable vShow_IVDT =0,


Call vShow_IVDT variable in conditional of each dimension


View solution in original post

7 Replies
Kushal_Chawda

for 30 button, set vShow_IVDT values from 1 to 30,


to select all, create button, set variable vShow_IVDT =1


to deselect all, create button,  set variable vShow_IVDT =0,


Call vShow_IVDT variable in conditional of each dimension


aaronnayan
Creator III
Creator III
Author

Thanks Kushal! that worked

i have each indivualy button with a text box colour coded

if the button is selected it will be green if not it will be red

the select all button does not change it

code in colour

=if(vShow_IVDT=1,LightGreen(),lightred())

Kushal_Chawda

have you applied trigger on button to set variable value to 1? if so, this condition should work.

aaronnayan
Creator III
Creator III
Author

Sorry i do not know what trigger on means

For my select all button

variable: vShow_IVDT

value:vShow_IVDT=1

Every button has a text box that is a button also with that varibable

if it is selected it goes green if not it goes red

The select all button is not changing the colour even when the varibles are true

Kushal_Chawda

can you please share  sample?

aaronnayan
Creator III
Creator III
Author

i have managed to do the last part thank you Kushal

in the select all button

variable

vShow_IVDT

value

=if(vShow_IVDT =1,0,1)

Kushal_Chawda

awesome