<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Enigma : get variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Enigma-get-variable/m-p/2058545#M1231765</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;BR /&gt;I would like to get objects from my application. and enigma doesn't seem to work.&lt;/P&gt;
&lt;P&gt;The application is on my Desktop, created with QlikSense Desktop which is open when I run the belo js&lt;/P&gt;
&lt;P&gt;There is for sure an error in my code:&lt;/P&gt;
&lt;P&gt;const enigma = require('enigma.js');&lt;BR /&gt;const WebSocket = require('ws');&lt;BR /&gt;const schema = require('./node_modules/enigma.js/schemas/12.1477.0.json');&lt;/P&gt;
&lt;P&gt;const url = 'ws://localhost:9076/app/engineData';&lt;/P&gt;
&lt;P&gt;const session = enigma.create({&lt;BR /&gt;schema,&lt;BR /&gt;url,&lt;BR /&gt;createSocket: url =&amp;gt; new WebSocket(url),&lt;BR /&gt;});&lt;/P&gt;
&lt;P&gt;session.open().then(async (global) =&amp;gt; {&lt;BR /&gt;const app = await global.openDoc('MyDoc.qvf');&lt;/P&gt;
&lt;P&gt;const variables = await app.getVariables({"qListDef":{"qName": "CIRO"}});&lt;BR /&gt;console.log('Variables:', variables);&lt;/P&gt;
&lt;P&gt;if(session!=null) session.close();&lt;BR /&gt;}).catch((err) =&amp;gt; {&lt;BR /&gt;console.log('Error:', err);&lt;BR /&gt;});&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The app is really a stupid one:&lt;/P&gt;
&lt;P&gt;here's the script&lt;/P&gt;
&lt;P&gt;LET PIRO=1;&lt;BR /&gt;SET CIRO=2;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;DATA1:&lt;BR /&gt;LOAD * INLINE [...&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Jan 2026 16:26:21 GMT</pubDate>
    <dc:creator>D_BrUuu</dc:creator>
    <dc:date>2026-01-26T16:26:21Z</dc:date>
    <item>
      <title>Enigma : get variable</title>
      <link>https://community.qlik.com/t5/QlikView/Enigma-get-variable/m-p/2058545#M1231765</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;BR /&gt;I would like to get objects from my application. and enigma doesn't seem to work.&lt;/P&gt;
&lt;P&gt;The application is on my Desktop, created with QlikSense Desktop which is open when I run the belo js&lt;/P&gt;
&lt;P&gt;There is for sure an error in my code:&lt;/P&gt;
&lt;P&gt;const enigma = require('enigma.js');&lt;BR /&gt;const WebSocket = require('ws');&lt;BR /&gt;const schema = require('./node_modules/enigma.js/schemas/12.1477.0.json');&lt;/P&gt;
&lt;P&gt;const url = 'ws://localhost:9076/app/engineData';&lt;/P&gt;
&lt;P&gt;const session = enigma.create({&lt;BR /&gt;schema,&lt;BR /&gt;url,&lt;BR /&gt;createSocket: url =&amp;gt; new WebSocket(url),&lt;BR /&gt;});&lt;/P&gt;
&lt;P&gt;session.open().then(async (global) =&amp;gt; {&lt;BR /&gt;const app = await global.openDoc('MyDoc.qvf');&lt;/P&gt;
&lt;P&gt;const variables = await app.getVariables({"qListDef":{"qName": "CIRO"}});&lt;BR /&gt;console.log('Variables:', variables);&lt;/P&gt;
&lt;P&gt;if(session!=null) session.close();&lt;BR /&gt;}).catch((err) =&amp;gt; {&lt;BR /&gt;console.log('Error:', err);&lt;BR /&gt;});&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The app is really a stupid one:&lt;/P&gt;
&lt;P&gt;here's the script&lt;/P&gt;
&lt;P&gt;LET PIRO=1;&lt;BR /&gt;SET CIRO=2;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;DATA1:&lt;BR /&gt;LOAD * INLINE [...&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jan 2026 16:26:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Enigma-get-variable/m-p/2058545#M1231765</guid>
      <dc:creator>D_BrUuu</dc:creator>
      <dc:date>2026-01-26T16:26:21Z</dc:date>
    </item>
  </channel>
</rss>

