I'd like to make an extension where I can save multiple sets of data as a PDF. To accomplish that, I have to cache data in a QV variable, and select different data sets. But every time I use _this.Data.ClearSelections();, _this.Data.SearchColumn(0, email, true); or doc.SetVariable("remainingEntries", JSON.stringify(remaininEntries)); it reloads the extension and starts over the script, even tho I want to execute something else after changing the selection. Is there a fix to it? Or is there at least a way to save variables without qlikview reloading my extension? The Variable should be able to survive reloads, and should be able to be accessed by other extensions.
Btw.: Have you tried to hold a global variable which is out of scope of Qva.AddExtension(...)? You could implement your cached data there and set a handler inside the Qva.AddExtension(...)-Scope to clear your cache as needed.