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

Invalidating extension so that "paint" is invoked again

Hi everyone

I'm developing a QlikSense extension, and I cannot figure out how to do a very simple operation: invoking a "repaint" manually.

Let me explain what I mean: at a certain point, my extensions changes the properties, like this:

this.backendApi.getProperties().then(function(props){

    //Change some props

    props.qHypercubeDef.qMeasures[0].qDef.myProp = "something";

  

    //Save properties

    this.backendApi.setProperties(props);

});

since I've changed the extension's properties I would expect the "paint" method to be automatically invoked by the engine, just like it does when the extension is resized or the hypercube is patched.

Instead, the paint method is not invoked. How do I trigger a repaint from code?

1 Solution

Accepted Solutions
master_t
New Contributor III

Re: Invalidating extension so that "paint" is invoked again

Well, after more testing it turns out it was my fault: the engine DOES recall the paint method when you setProperties, a bug in my code was preventing the second call. Sorry for wasting your time.

1 Reply
master_t
New Contributor III

Re: Invalidating extension so that "paint" is invoked again

Well, after more testing it turns out it was my fault: the engine DOES recall the paint method when you setProperties, a bug in my code was preventing the second call. Sorry for wasting your time.

Community Browser