2 Replies Latest reply: Jul 31, 2017 2:47 PM by Digvijay Singh RSS

    Qlik Sense client onclick event

    Alex Watts

      Hi All,

       

      I have looked on the discussion boards and couldn't find what I was looking for. I have built a .NET MVC web app which contains a iframe, which is used to display a qlik sheet. When the iframe populated with the Qlik Sheet, is there anyway to capture the onclick event. Qlik itself doesn't seem to have it by default.

       

      The reason I ask is because I want to update other html parts based on the selections, as well as log selections for debugging purposes.

       

      Regards,

       

      Alex Watts

        • Re: Qlik Sense client onclick event
          Alex Watts

          in case anyone was interested my found my answer. Its really not clear in the documentation, well it wasn't to me. But I used the qlik app api and the getList function using the SelectionObject as my parameter. HOWEVER the return list of selections is limited to 6, when you go over you "n of x selected" message. How, do you get all of them, feel free to tell me.

           

          app.getList( 'SelectionObject', function ( reply ) {
               var str = "";
               $.each(reply.qSelectionObject.qSelections, function(key, value) {
                    // ONLY LIMITED TO 6
                    str +=  value.qField + ': ' + value.qSelected + '\n';
               });
               
               if(str.length > 0){
                    alert(str);
               }
          } );