Qlik Community

Qlik Sense Integration, Extensions, & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

Highlighted
sanket_raj
New Contributor II

Qlik Sense JS Extension createTable() does not return values

I am creating a table using createTable() method in Qlik Sense. However when I query a field using getData() I get nothing. On the website it says I need to use OnData and then I will get the value of the field. But this never works. The listener is never called. Why is this not working?

    var table = qlik.table(this);

    var listener = function() {
    var rowCount = table.rowCount;
    var colCount = table.colCount;
    table.OnData.unbind(listener);  //unregister the listener when no longer notification is needed.
 };
 table.OnData.bind(listener); //bind the listener
Labels (3)
3 Replies
ErikWetterberg
Honored Contributor

Re: Qlik Sense JS Extension createTable() does not return values

Have you got a hyper cube defined in your extension?

Erik Wetterberg
https://extendingqlik.upper88.com/
sanket_raj
New Contributor II

Re: Qlik Sense JS Extension createTable() does not return values

Yes, there is a hypercube. It has 17 rows.

Similar Question

However, I understand that we need to call OnData method. How and where do I call OnData.

Capture.PNG

sanket_raj
New Contributor II

Re: Qlik Sense JS Extension createTable() does not return values

I was able to resolve this myself. Thanks.