Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

Highlighted
vovan4ik
Valued Contributor II

Trigger select / not select

Hi guys,

I have a field "Categories" with 3 tags

"Unhappy"

"Neutral"

"Satisfied"

I'd like to create 3 text boxes for each categories with action , when I click once -> select 1 categories. Click again deselect it.

How is better to do?

Create 6 boxes: 3 to select and 3 deselect with show conditions

Or others tricks?

1 Solution

Accepted Solutions
vovan4ik
Valued Contributor II

Re: Trigger select / not select

I created 3 variables for each "Categories"(vSatisfied,vNeutral, vDislike)

Add action Select in Field for "categories' and add set variable vSatisfied=1 others =0

And in text box expression added

=IF(vSatisfied=1 , 'C:\Users\Pictures\c_praise (2).png','C:\UsersPictures\c_count (2).png') and so on for each image

changed for image display

View solution in original post

7 Replies
marcus_malinow
Valued Contributor III

Re: Trigger select / not select

In your text boxes, you can set them to do the 'Toggle Select' Action. Set the field name to Categories, and Search String to one of the tags.

Marcus

krishna_2644
Valued Contributor III

Re: Trigger select / not select

Its All about the BUTTONS.

please check out the link where i have posted a document on creating actions on text boxes.

Also see attached FYI.

hope that helps.

richard_chilvers
Valued Contributor

Re: Trigger select / not select

It may be useful to have a button (or several) which toggle between selections.

If you search for toggle on this forum, you may find some useful discussions already.

HTH

vovan4ik
Valued Contributor II

Re: Trigger select / not select

the final version of my selection is

I have 3 images with counts for each "Categories". When I select one of them, this image should be the same, others images should be changes.

How you suggest to do it? I didn't use QV a long ago. Maybe there is new tricks.

vovan4ik
Valued Contributor II

Re: Trigger select / not select

I created 3 variables for each "Categories"(vSatisfied,vNeutral, vDislike)

Add action Select in Field for "categories' and add set variable vSatisfied=1 others =0

And in text box expression added

=IF(vSatisfied=1 , 'C:\Users\Pictures\c_praise (2).png','C:\UsersPictures\c_count (2).png') and so on for each image

changed for image display

View solution in original post

jafari_ervin
Contributor III

Re: Trigger select / not select

Hi Vladimir

You can use select in field action with conditional search string.

Please see the attachment.

vovan4ik
Valued Contributor II

Re: Trigger select / not select

Thanks, that works perfect. But it doesn't show visually what is selected. That's why I switched to change background images. (easy to use background color, mockup was done with images)

Selected image should be bright, other images should be gray.