Qlik Community

Integration, Extension & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

Announcements
Support Case Portal has moved to Qlik Community! Read the FAQs to start exploring Support resources.
cancel
Showing results for 
Search instead for 
Did you mean: 
nzlysenko
Contributor II
Contributor II

Multiple session apps in the same user session

Hi everyone. I try to create two session apps using engine api in one user session but it doesn't work. The engine answers with the message:  "error: { code: 1002, parameter: '', message: 'App already open' } }". We use Qlik Sense Server February 2019 release. Code sample:

(async ()=>{
const qix = await session.open();
await qix.createSessionAppFromApp({'qSrcAppId':'5f0eba2b-1fcf-46c9-8a9c-b4b6c0304de4'});
await qix.createSessionAppFromApp({'qSrcAppId':'378108df-7212-493e-ac6d-9ba63935de45'});
await session.close();
})();
 
Labels (3)
1 Solution

Accepted Solutions
ErikWetterberg

Hi,

that’s not possible. QIX only allows one app for a web socket, so you have to open two web sockets.

View solution in original post

2 Replies
ErikWetterberg

Hi,

that’s not possible. QIX only allows one app for a web socket, so you have to open two web sockets.

View solution in original post

nzlysenko
Contributor II
Contributor II
Author

Thank you! I changed code for multiple websockets adding unique id in the url like `wss://${host}:4747/app/${uniqueId}` and now it all works.