Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
sanket_raj
Contributor II
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)
1 Solution

Accepted Solutions
sanket_raj
Contributor II
Contributor II
Author

I was able to resolve this myself. Thanks.

View solution in original post

3 Replies
ErikWetterberg

Have you got a hyper cube defined in your extension?

sanket_raj
Contributor II
Contributor II
Author

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
Contributor II
Contributor II
Author

I was able to resolve this myself. Thanks.