Qlik Community

Qlik Sense Integration, Extensions, & APIs

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

master_t
New Contributor III

How to know if a repaint was triggered by new data?

Hello

I'm developing a Qlik Sense extension and I noticed that the engine calls the "paint()" function quite often: when the hypercube changes, when another property changes, when the user resizes the extension area, etc.

Since my initial data load operation is quite slow (because I need to do some post-processing on the cube's data before it is displayed), I would like to know: is there a way to know WHY my paint() function was called? What I mean is: can I know if the paint() function was called because the hypercube changed (in which case I need to re-run my post processing routines) or simply because the extension was resized (in which case I don't need to touch the data)??

1 Solution

Accepted Solutions
erik_wetterberg
Valued Contributor III

Re: How to know if a repaint was triggered by new data?

Hi,

You can implement your own resize handling. I'm afraid this seems to be missing in the documentation. If you add a resize method to your extension, that will be called on resize, not the paint method.

Erik Wetterberg

If you find this helps you, please mark the answeras helpful and/or correct.

Erik Wetterberg
https://extendingqlik.upper88.com/
1 Reply
erik_wetterberg
Valued Contributor III

Re: How to know if a repaint was triggered by new data?

Hi,

You can implement your own resize handling. I'm afraid this seems to be missing in the documentation. If you add a resize method to your extension, that will be called on resize, not the paint method.

Erik Wetterberg

If you find this helps you, please mark the answeras helpful and/or correct.

Erik Wetterberg
https://extendingqlik.upper88.com/