Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
FrankG
Partner - Contributor II
Partner - Contributor II

Issue with SelectValues() in extension in single when using ticket authentication via Virtual Proxy

Hello!

There seems to be an issue with custom extensions in a single when using ticket authentication and virtual proxy. 
The problem occurs after an image is exported from any object in the single. Calls like 'selectvalues' and 'clear' will stop working. The extension still receives updates to its hypercube/listobjects and the selectvalue calls are still sent, but they don't do anything. I think a new ticket is requested after the image has been exported, at this point standard qliksense objects will still work fine, but it seems like a custom extension doesn't get refreshed. 
Does anyone have experience with this issue? I will look into reporting this as a bug.


Labels (3)
1 Solution

Accepted Solutions
ErikWetterberg

Ok, looks like the problem is with the currApp call.

Try currApp(this) instead. Or save the app referenser in your first paint call. Or use the backendApi methods.

View solution in original post

5 Replies
ErikWetterberg

What happens  When you call selectValues or clear? Error messages? Any reply from engine? Web socket traffic?

Have you tried this with more than one extension? The bug might be in the extension.

FrankG
Partner - Contributor II
Partner - Contributor II
Author

Hello Erik, thank you for your reply!

What I'm seeing is that a new websocket gets created when exporting an image. After this the extension will send its calls to this new websocket, which just returns something like: 
{"jsonrpc":"2.0","id":9,"delta":true,"result":{"qReturn":[]},"change":[1,2]}
This does nothing in the dashboard. 

When I look at a normal Qliksense object I notice that they ignore the new websocket and keep sending their calls to the old websocket, which is why they have no issue. 

I have tested multiple extensions, it even occurs in the most simple one i could make which is a button that clears a field:
var app = qlik.currApp();
app.field('myfield').clear();

 

ErikWetterberg

Ok, looks like the problem is with the currApp call.

Try currApp(this) instead. Or save the app referenser in your first paint call. Or use the backendApi methods.

FrankG
Partner - Contributor II
Partner - Contributor II
Author

currApp(this) fixes the problem! Thank you Erik for your help!

ErikWetterberg

Thanks,

currApp() might not work as expected at all times, you should be a bit careful.