Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
A456B123
Contributor II
Contributor II

Get current filter value with JavaScript

Hello, everybody,

I am working for the first time on an extension where I want to store the current filter value in a variable. For this I (probably) need some kind of onChange function?

Could you please show me the best way to do this?

Many greetings

A456B123

2 Replies
Prashant_Naik
Partner - Creator II
Partner - Creator II

Hi,

You can create a button extension in Qlik Sense, and on that button click you can write a code which gets the value of filters currently selected e.g,

console.log(qlik.currApp(this).selectionState())    //this will give you values of current selections you have made

And if you want to store the value in QS variable refer below link for updating or creating the variable in QS

https://help.qlik.com/en-US/sense-developer/February2019/Subsystems/APIs/Content/Sense_ClientAPIs/Ca...

Regards,

Prashant

 

Prashant_Naik
Partner - Creator II
Partner - Creator II