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

Button action - add criteria to current selectio

Hi everybody,

In my QV project I need a toggle button (or two separate buttons) which:

1. position: add a condition CISLOSTAVBY = like D* to the current selection

2. position: remove the previous condition from the current selection

How can I acheive it ?

Thanx in advance.

Duski

9 Replies
neo_lee
Partner - Creator
Partner - Creator

Hi there,

you can

  1. make a new variable under the variable overview, then in button properties,
    do Actions > External > Set Variable
  2. Actions > Selection > Back


Hope this helps

Regards

Not applicable
Author

Thank you very much, Neo.

I'l try it, but I have some additional questions:

- how is the correct syntax for statement LIKE for button actions ?

  I tried this with no success.

Snap_2014.08.06 15.49.20_008.jpg

Search string without wildcard works well:

Snap_2014.08.06 15.50.12_009.jpg

- in position 1. I need to ADD THE NEW CONDITION TO THE CURRENT SELECTION - how can I achieve this ?

- in position 2. I need to substract the condition above from the current selection; this is not the same as BACK, because the actual selection can be changed - how can I achieve this ?

     Exclude statement like this works (but at the moment without wildcards):

Snap_2014.08.06 15.53.15_010.jpg

Thanx in advance

Duski

neo_lee
Partner - Creator
Partner - Creator

Hi Dusan,

for your first question, have you tried without the like statement? just D*

Regards

Not applicable
Author

Hi Neo,

I thought, this was the first syntax I tried, but maybe I'm wrong, because IT WORKS !!!

Thank you very much !

Any suggestions to toggling of the additional condition to the current selection ?

Thanx in advance.

Duski

neo_lee
Partner - Creator
Partner - Creator

Hi Dusan,

what do you mean by toggling of the additional condition to the current selection?

can you please elaborate more ?

Regards

neo_lee
Partner - Creator
Partner - Creator

I reckon I get it already,

you can add one more action in your 1st position, as bookmark

so when you wants to remove your previous condition, just point the action

to the particular bookmark,

please let me know if you are confuse, so i could elaborate more about this

sudeepkm
Specialist III
Specialist III

I think Instead of a button you may use a Search object (only having the desired Field name 'CISLOSTAVBY' in it)

Then users can just type D* or anything to see related field values and by selecting those values from the search object drop down will add them to current selection.

neo_lee
Partner - Creator
Partner - Creator

This is one of the great solution,

but I reckon he's developing the apps for novice user,

so rather than having them to type D* in the search box,

he preferred to use button instead

Regards

Not applicable
Author

Thank you, Neo and Sudeep,

I solved my problem another way.

I added a button for the exclude action ...

Snap_2014.08.07 07.31.30_001.jpg

... and for the reverse operation I simply delete this condition from the search box 🙂

Snap_2014.08.07 07.33.37_002.jpg

Thank you very much for your time and good luck.

Duski