Qlik Community

Qlik Sense App Development

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

Announcements
Qlik® Product Spotlight: Discover what’s possible. Get more from our products.
See for yourself. Register today.
billgates
Contributor

[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
Contributor

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

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