Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Clearing previous selection with a trigger?

Hi,

There is a Customer Type field which can be either ‘VIP’ or ‘Regular’.

I would like the user to select one of the following options:

  • VIP
  • Regular
  • All

Assuming I use a ListBox, my question is how to implement the ‘All’ selection.

Another words, how do I clear the previous selection. I tried triggers, but I had a problem with defining an expression for the search string in a selected field.

Thanks!

1 Solution

Accepted Solutions
jonathandienst
Partner - Champion III
Partner - Champion III

Hi

Add the following inline load in your script:

Customer_Type_Select:

LOAD * Inline

[

          Customer Type, Customer Type Select

          VIP, VIP

          Regular, Regular,

          VIP, All

          Regular, All

];

Then use [Customer Type Select] in your list box (and Qlikview will do the rest!)

Hope that helps

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein

View solution in original post

2 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

Hi

Add the following inline load in your script:

Customer_Type_Select:

LOAD * Inline

[

          Customer Type, Customer Type Select

          VIP, VIP

          Regular, Regular,

          VIP, All

          Regular, All

];

Then use [Customer Type Select] in your list box (and Qlikview will do the rest!)

Hope that helps

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Not applicable
Author

Brilliant!

Thanks!