Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.
I’m trying to export an image from a Qlik Sense mashup using the Visualization API ( viz.exportImg ).
It works but only for the very first app you open “AppA”, see example code below.
If you open another app ,”AppB”, before the first one the image export fails with error code: 2 (I have not found any documentation for what error code 2 means by the way).
If you however open the second app “AppB” after the first one “AppA” exporting images works but only ever for the first opened app. The “currApp” API call seems to follow this pattern, it only ever returns the first opened app.
Data export seems to work regardless of opening sequence.
Is this the expected behavior or is there a way to change the “active” app??
Hi @JohanW ,
It looks like a bug, Qlik Sense Client (the dashboard) does have support for multi apps, like in mashups - and my guess is as you mentioned, somewhere deep in the code, we are using currentApp() which can cause this problem.
What Qlik Sense version are you using?
Unfortunately there is no good workaround for this... but, It looks this have been fixed in later version of Qlik Sense - can't say for sure, maybe for September version maybe after September.
You could try sequence the calls: open App B => do your export => close App B => open App A = export => close App A.
I hope this helps
Thanks, guess I’ll have to wait for the fix.
I have tried sequencing the calls but with the same result. Closing the app does not seem to matter, you can still only export from the first app.
Anyway, thanks for your help.
Hi Aaz or others:
I am working with my product development in my company. Can you please tell me where September NPrinting 2019 release is located, if it has been officially released? I need some fixes for an upcoming demo. Many thanks!
Can you think of a work around to show publishing reports? My scenario is: I built a custom A/R report by sales rep
and other factors, and I want to show publishing reports by sales reps. Thank you for your feedback and assistance.