9 Replies Latest reply: Aug 30, 2016 11:14 AM by Bill Gates RSS

    I can't programmatically get selections, please assist

    Bill Gates

      Hello!

       

      I'm absolutely new in this technologies and I'm trying work with Qlick Sense 3.0 programmatically.

       

      I created application like on video from youtube:

      https://www.youtube.com/watch?v=xT0KPWtrgMg

       

      And now my purpose is to get/set selections programmatically.

       

      To do this, I created extension and added it on sheet.

       

      When sheet is updating, my method executing.

       

      And my question is:

      What should i do to get selected id or value in browser console?

       

      What i made:

       

      I've selected some fields:

       

      h_1472559416_5877018_91274d26d6.png

       

      And next, i'm wrote code:

       

      define( [ "qlik"],
      
      
      function ql(qlik) {
      
        function myFunction(){
      
        var app = qlik.openApp('Auto.qvf');
      
        app.getList('CurrentSelections', function(reply){
             console.log(reply);
        });
      
        }
      
      
        return {
      
        paint: function ($element) {
      
        myFunction();
      
        return qlik.Promise.resolve();
        }
        };
      
      } );
      

       

      But, in result, I'm always receiving an empty array.

       

      h_1472559472_5247683_2ef779b35f.png

       

      How to do it right?

       

      Please Assist.

      Yes, i read topics before create new.

       

       

      Thanks.