Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I 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
I was able to resolve this myself. Thanks.
Have you got a hyper cube defined in your extension?
Yes, there is a hypercube. It has 17 rows.
However, I understand that we need to call OnData method. How and where do I call OnData.
I was able to resolve this myself. Thanks.