Qlik Community

Ask a Question

App Development

Discussion board where members can learn more about Qlik Sense App Development and Usage.

Announcements
Support Cases coming to Qlik Community Oct. 4! Start chats, open cases, explore resources: READ DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
billgates
Creator
Creator

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

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.

1 Reply
billgates
Creator
Creator
Author

Looks like I should use promise, but i do not understand how.