Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
master_t
Partner - Creator II
Partner - Creator II

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
Partner - Creator II
Partner - Creator II
Author

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.

View solution in original post

1 Reply
master_t
Partner - Creator II
Partner - Creator II
Author

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.