Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
AG-gugelbisolutions
Creator II
Creator II

Engine JSON API Session App

Hi there, I'm pretty new to the Qlik Sense development through APIs and I'm trying to build a session app (from another app) by means of the Engine JSON API.

The question is: how the web page shown to the user has to be built? I'll try to follow the official tutorial, but it calls the API from the browser.

Or is it sufficient to redirect the user to an URL built with the ID of the session app (if any)?

Thanks

Labels (2)
3 Replies
AG-gugelbisolutions
Creator II
Creator II
Author

I'll formulate it again.

How can session apps created through Engine API be used by users?

stefanstoichev123

If the user is creating the session app then its easy:

  • call enigma/Engine API to create session app (or create session app from app)
  • set the script (or modify it if session app from app is used)
  • reload the app
  • once the app is reloaded create some viz on the fly (or if session app from app method is used then the viz are potentially there)
  • display whatever you want/need

If we are talking about some backend service to create the session app (on behalf of the user) and then the user to access this app then the things are quite complex. The complexity comes because the backend service should actually connect to the exactly the same engine session to which the user is connected through the browser. Once the backend is connected to the same engine session then it will create the session app and when the reload is complete it will report back to the mashup with the session app id and the mashup then can open the prepared session app and do the rest.

AG-gugelbisolutions
Creator II
Creator II
Author

Thank you @stefanstoichev123 , at this stage I would go for the most straightforward solution.

Provided that I am already able to run some enigma code through NodeJS command line interface to create and reload a session app (from another ap), I'm having trouble showing its content to users. How do I display the objects in the app? Is there a specific URL? I tried building a URL with the session app ID in place of the original app ID, but the the App Overview does not get shown.

Maybe what you are trying to tell me (and I apologize if I'm not getting the point) is that I should let the browser execute the enigma code (some how), instead of using NodeJS command line interface. Am I right?

Thanks