1 Reply Latest reply: Sep 9, 2016 5:33 AM by Bill Gates RSS

    [qlik sense 3.0] I can't receive array of rows from field programmatically. Please Assist.

    Bill Gates

      Hello devs!

      I'm beginner in qlik and I'm trying work with Qlick Sense 3.0 programmatically

       

       

      I have a function:

       

      function whenMonthsSelected(fieldName){
      
      
          var field = app.field(fieldName);
      
      
          var fieldData = field.getData();
      
      
          console.log("fieldData");
          console.log(fieldData);
      
      
          console.log(fieldData.rows.length);
      
      
      }
      

       

       

      And after executing it, i have in browser console next:

       

      h_1473323948_2181652_8312c75976.png

       

      In the result i have array with 0 rows.

      Of course field has a rows with values.

       

      And my question is...

      What should i do to receive array with 12 rows?

       

      If it possible, please write answer more detail, because looks like i do not understand how it works.

       

      Thanks.