Qlik Community

Ask a Question

Integration, Extension & APIs

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

Announcements
Our next Qlik Insider session will cover new key capabilities. Join us August 11th REGISTER TODAY
cancel
Showing results for 
Search instead for 
Did you mean: 
zrednaz1
Partner
Partner

Setting filter values in JavaScript

Hi!

I'm embedding QlikSense mashups with div integration on an external website. One required feature is to allow the user to save/load filter values. The key/value pairs will be saved on the external site.

I'm half way there, having managed to get current selections like this:

function saveSelections()

{

app1.getList("CurrentSelections", function(reply) {

var mySelectedFields = reply.qSelectionObject.qSelections;

});

}

However, I can't figure out how to use the API to set filter selections. Any help greatly appreciated.

2 Replies
ErikWetterberg

Hi Anders,

It is much easier to use a bookmark. Use your own type for it and it won't show up in the client.

Erik Wetterberg

http://extendingqlik.upper88.com

zrednaz1
Partner
Partner
Author

I realize that bookmarks are a possibility, however, that would mean saving settings on the Qlik server, right? I don't think that is an options for us since we will have users who - are far as Qlik is concerned - are anonymous, but still need to be able to save settings on the external website.

Anyway, I found this app.field.selectValues method which seems to be what I'm looking for: https://help.qlik.com/en-US/sense-developer/1.1/Subsystems/Workbench/Content/BuildingWebsites/API/Me...