skokenes / senseUtils

a JavaScript library for developing Qlik Sense web solutions with the Sense APIs
17 stars 9 forks source link

Qlik Sense 3.0 : Method to destroy hypercube #5

Open XellossT opened 8 years ago

XellossT commented 8 years ago

Hi,

Since Qlik Sense 3.0 this method is not working anymore :

 destroyObj : function(app, qId) {
         app.model.session.socket.send(JSON.stringify({
             "jsonrpc" : "2.0",
             "id" : 2,
             "method" : "DestroySessionObject",
            "handle" : 1,
             "params" : qId instanceof Array ? qId : [qId]
        }));

I found this method inside the documentation to destroy hypercube : app.destroySessionObject();

https://help.qlik.com/en-US/sense-developer/3.0/Subsystems/APIs/Content/MashupAPI/Methods/destroySessionObject-method.htm

Anyone got the same problem ?

Regards, Thibaut

FrankDuchmann commented 8 years ago

Hi Thibaut,

I am facing the same problem as you. After every paint action my Qlik Sense 3.0 Extension gets slower and slower. With an Chrome Developer Tools Snapshot I can cleary see that the memory increases (not only memory also the nodes) over time (after every selection --> paint action is called). Did the method destroySessionObject() work for you? Most of the coding I did in the callback of my Hypercubes, have you found a better method to do so?

Best Regards, Frank