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: 
Not applicable

Creating a custom dynamic with buttons - select multiple fields

Hello,

I've:


3 buttons;
1 Field;
 

  • The Button 1 defines the Field to Value 1
  • The Button 2 defines the Field to Value 2
  • The Button 3 defines the Field to Value 3

    What I’m trying to do is:

    If I press Button 1 and next press Button 2 and next press Button 3 I will have
    Field = (Value 1 | Value 2 | Value 3)
    If I press Button 1 again I will have
    Field = (Value 2 | Value 3)
    If I press Button 3 again I will have
    Field = (Value 2)

Are you seeing the logic?

I’ve something like this for the Action in first button:

=IF(GetSelectedCount
(Field)=0,
Field=1,
if(GetSelectedCount(Field)>0,
Week='('& 1 & GetFieldSelections(Field) & ')'))


Thanks!

1 Solution

Accepted Solutions
Gysbert_Wassenaar

Add a Toggle Select action to each button instead to toggle on and off the selection of the values.


talk is cheap, supply exceeds demand

View solution in original post

6 Replies
Chanty4u
MVP
MVP

=IF(GetSelectedCount

(Field)=0,
Field=2,
if(GetSelectedCount(Field)>0,
Week='('& 1 & GetFieldSelections(Field) & ')'))

Not applicable
Author

Hello,
Thanks for your response, but

Can't getting what I want

Gysbert_Wassenaar

Add a Toggle Select action to each button instead to toggle on and off the selection of the values.


talk is cheap, supply exceeds demand
Chanty4u
MVP
MVP

Hi Gysbert ,

can u explain how toggle works?  what it exctly?

Not applicable
Author

Hello Gysbert,

Thank for your response. I never use Toggle Select. What I'm reading, this allows me to unselect the value. But I'm getting confuse about how I can use them to select the values...

Thanks for your help

Not applicable
Author

I already got It

I create a Trigger that select all possible values to the field, then on each button I add the following action which deselect each value.

Capture.PNG