3 Replies Latest reply: Dec 21, 2016 4:13 AM by Juan Vitantonio RSS

    How to pass a variable from a getList method to an external function

    Yassin Saudie

      Hi Everyone!


      I have the below function that loops through the selection objects and gets the field selected and sets it to a global variable:


      var fullFields;

      function getFilterSelections() {

           var app = qlik.currApp();

           var getFields = app.getList("SelectionObject", function(reply){

                $.each(reply.qSelectionObject.qSelections, function(key, value) {

                     fullFields +=  value.qField;





      The function above sets the fullFields variable to the field selected by the user to be used in further functions.