2 Replies Latest reply: Aug 10, 2018 10:41 AM by Anders Nielsen RSS

    Setting filter values in JavaScript

    Anders Nielsen

      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.