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: 
Michiel_QV_Fan
Specialist
Specialist

Qlik Sense pre list of selected values in script to a button

Hi,

In QlikView we can create a trigger with selections in a field by separating the values with a pipe, like this:

cars|trains|planes

In Qlik Sense I tried this by creating the list in the script and use a comma , as is shown if you use getfieldselections(fieldname). That does not work. Pipe | does not work either.

Is this possible?

Labels (1)
1 Solution

Accepted Solutions
Or
MVP
MVP

Comma and Pipe both seem to work fine on my end, but your list is missing the required single-quotes or parenthesis for it to work.

'cars'|'trains'|'planes' should work, as should (cars|trains|planes). The latter is listed in the search cheat sheet - https://webapps.qlik.com/search-cheat-sheet/Qlik+Sense+Search+Cheat+Sheet+en-US.pdf

Or_1-1707918940714.png

 

Or_0-1707918908119.png

 

 

View solution in original post

2 Replies
Or
MVP
MVP

Comma and Pipe both seem to work fine on my end, but your list is missing the required single-quotes or parenthesis for it to work.

'cars'|'trains'|'planes' should work, as should (cars|trains|planes). The latter is listed in the search cheat sheet - https://webapps.qlik.com/search-cheat-sheet/Qlik+Sense+Search+Cheat+Sheet+en-US.pdf

Or_1-1707918940714.png

 

Or_0-1707918908119.png

 

 

Michiel_QV_Fan
Specialist
Specialist
Author

Thanks for the cheat sheet. Didn't known about this sheet. I get the selection working with text like versions. And with single years. Not with ranges yet but I will get there.