Qlik Community

Qlik Sense Integration, Extensions, & APIs

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

alastairmcdonald
New Contributor II

Re: "Not Connected" popup in Mashup when reopening a closed app

I've also tried with and without an idnetity parameter and get the smae thing happening

alastairmcdonald
New Contributor II

Re: "Not Connected" popup in Mashup when reopening a closed app

Okay so i have narrowed it down.

 

i followed this post: https://community.qlik.com/t5/Qlik-Sense-Integration/Qlik-Sense-Mashup-Unloading-Objects-from-Memory...

and was able to dispose of objects successfuly however i cannot use this for the CurrentSelections object.

When i add the current selections object back into my code using getObject i get the error.

does anyone know how to do effective cleanup / disposing of the selections bar? generated by getObject?

 

 

Highlighted
erik_wetterberg
Valued Contributor III

Re: "Not Connected" popup in Mashup when reopening a closed app

Hi,

internally the selections bar is different from the other objects, so it might very well work differently. Why do you need to close it? Why not just keep it, and use the show method if you need it somewhere else. Or just keep it displayed all the time.

Erik Wetterberg
https://extendingqlik.upper88.com/
alastairmcdonald
New Contributor II

Re: "Not Connected" popup in Mashup when reopening a closed app

the problem is i am flipping between multiple QS apps in my mashup and when i return to a previously visited app the selection bar stops working. i had hoped by attempting to close it correctly i could reopen it when revisiting an app a second time.

obviously there is a separate selection bar for each app and i am not trying to pass selections betweeen them simply reload the selection bar each time that corresponds to the app the mashup is based on

alastairmcdonald
New Contributor II

Re: "Not Connected" popup in Mashup when reopening a closed app

I solved it thanks to your help Erik,

 

i now have my getter method check for the object and if it exists just use object.show the second time. this seems to work without me needing to close the connection to the app or close the visualisations when navigatiing between apps.

 

Thank you.

Community Browser