Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello All!
I'm trying to make a new extension that allows us to actively monitor app reload times without needing to reload the app itself!
I'm attempting to do this using the "getAppList" method in the Root API: qlik.getAppList(callback, config)
The same code snippet works in a mashup but when I try to use it in an extension it returns a result but throws the following error:
From the documentation it looks like I should be able to use this method in an extension:
Just curious is this method is incompatible with extensions or why the error is being thrown! Any insight would be greatly appreciated! Thank you in advance!
Hi @BenjaminGroff ,
Within an extension, you don't need to initiate a new connection to Qlik Sense (this is what the config is for), removing the config should do the trick (...if I remember well).
Perhaps an even better solution is to use the global object under the currentApp:
const app = qlik.currApp();
app.global.getAppList(...);
I hope this helps,
Hi @BenjaminGroff ,
Within an extension, you don't need to initiate a new connection to Qlik Sense (this is what the config is for), removing the config should do the trick (...if I remember well).
Perhaps an even better solution is to use the global object under the currentApp:
const app = qlik.currApp();
app.global.getAppList(...);
I hope this helps,
The issue still persisted even after removing the config, but the second option you listed of using the global object under the currentApp worked!