Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi there, I'm trying to follow the official tutorial Tutorial: Creating a session app , but I'm getting a Connection Lost error at some point after hitting the Create Session App button.
Mashup is hosted by Qlik Sense itself and I'm reaching it through a URL like https://localhost/extension/[...]
Any ideas?
No-one has ever experienced this issue?
Let me reformulate. The problem (at least the first) seems to be finding enigma. Please note that I'm trying to run this tutorial as an extension.
I have installed enigma.js and ws packages with the following command, run with administrator privileges.
npm i -S enigma.js ws
This creates the relevant folders under C:\Windows\system32.
However, even if I try to require enigma with
const enigma = require("enigma.js");
I get the following error
Uncaught Error: Module name "enigma.js" has not been loaded yet for context: _. Use require([])
The same happens if I use the absolute path.
If I instead use
const enigma = require('enigma.js');
I get the this error
Uncaught Error: Module name "enigma.js" has not been loaded yet for context: _. Use require([])
How can enigma code be run on the browser?
From what I can see, the tutorial you are linking isn't using engima.js.
It's using the require( ["js/qlik"],... that will do the communication with engine
What's the goal here? Just learning?
You could try the tutorials at https://qlik.dev/tutorials/build-a-simple-mashup-using-capability-apis
Yes, the tutorial does not use enigma, but it works only on Qlik Sense Desktop. If I try to run it on QSEoW a "Connection Lost" error pops up and my intention was to solve it making use of enigma.
At the moment the goal is to learn, but I will need a much more solid knowledge, especially of session apps, in three or four months.
I will try to follow the Capability APIs tutorial as well.
Thanks.
Hey there @AG-gugelbisolutions,
Have you tried taking a look at these resources?
I hope this helps,
Riccardo
The "Connection Lost" problem stopped me as I was trying to follow all possible example to gain as much as experience possible.
At the moment I'm following this Capability API tutorial and is working fine. I feel like the right learning path starts from Capability/Root APIs and the enigma.
At the beginning I was pretty optimistic about enigma, but the only good result was a series of scripts to use as backend scripts; never been able to make it work on the browser.
Thanks
Just a quick update: I'm working without enigma at the moment, but I'm stuck on rendering objects within a session app (see this other post).