Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
raju_insights
Partner - Creator III
Partner - Creator III

Apply / Cancel Button for filters

Hi Techies,

I have a requirement. Lets say I have 'Apply Filter' and 'Cancel' button. And a Dimension field.

Here I am duplicating this dimension field list box and setting it to alternate state 'Filter'.


User will select the dimension list of the alternate state and presses the 'Apply Filter'. Now the selections made in the alternate state list box should be applied on the actual Dimension field list box.


On pressing the 'Cancel' button , it should clear the Actual and Alternate state list boxes.


How do I achieve that ?

1 Solution

Accepted Solutions
adamdavi3s
Master
Master

Please see the attached

Adam

View solution in original post

4 Replies
tresesco
MVP
MVP

Could you post your sample qvw?

adamdavi3s
Master
Master

The cancel one is easy as you can simply use the 'clear field' action available on buttons.

Then once you have defined an alternate state then the 'copy state actions' action should be available as well

If this doesn't work then you can do things quite easily with variables from memory, certainly copying alternate states to default selections is something I have done this way before

raju_insights
Partner - Creator III
Partner - Creator III
Author

Hi Adam,

Yeah the cancel one is easy.

Can you help me to define 'copy state contents' from the sample app attached. Thank you.

adamdavi3s
Master
Master

Please see the attached

Adam