How to get notified that table data has started updating?
Hello.
I'm building a mashup.
In this mashup I'm building a custom Pivot Table. I'm getting a table data using getHyperCubePivotData() method and then render a custom table using HTML and javaScript.
I also need to display a loading indicator when table is updating/re-rendering. For now, I've created a hypercube for this table. When I get a callback from hypercube (means that table data is ready) I display a loading indicator and call getHyperCubePivotData() method, and hide a loading indicator when getHyperCubePivotData() returns a data page.
It works good. But if the table calculates a big amount of data there is a noticeable delay between making a selection and hypercube callback. And user can't see that the table is updating for 2-5 seconds.
The question is, how can I be notified that the table data has started updating? I was thinking about selectionState callback, but it triggers not only when selections actually changed.