Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[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
Anonymous
Not applicable
Author

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