Qlik Community

Ask a Question

Qlik Sense Integration, Extensions, & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

Announcements
March 11, 2PM EST: Do More with Qlik - Getting Started wtih Qlik Sense SaaS - Redux. REGISTER NOW
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
Partner

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
Partner