<?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 Re: enigma.js getField method not working properly in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/enigma-js-getField-method-not-working-properly/m-p/1527545#M9802</link>
    <description>&lt;P&gt;Hi Aaz,&lt;/P&gt;&lt;P&gt;Thanks for the response.&lt;/P&gt;&lt;P&gt;The field is correct, it works when I try over the Engine API Explorer, and I've checked it over and over again.&lt;/P&gt;&lt;P&gt;I can use the 'createSessionObject' successfully and I call the "getField" method the following way:&lt;/P&gt;&lt;PRE&gt;let qField = await this.qApp.getField('MONTH');&lt;/PRE&gt;&lt;P&gt;Which returns the following object:&lt;/P&gt;&lt;PRE&gt;_events:Object {closed: }
_maxListeners:undefined
addListener:function (type, listener) { … }
emit:function (type) { … }
genericType:undefined
handle:2
id:undefined
listeners:function (type) { … }
on:function (type, listener) { … }
once:function (type, listener) { … }
removeAllListeners:function (type) { … }
removeListener:function (type, listener) { … }
session:Session {apis: ApiCache, config: Object, intercept: Intercept, …}
setMaxListeners:function (n) { … }
type:"Field"
__proto__:Object {getCardinal: , getAndM&lt;/PRE&gt;&lt;P&gt;then I can call any field method, but with no success, i.e.:&lt;/P&gt;&lt;PRE&gt;let result = await qField.selectAlternative();&lt;/PRE&gt;&lt;P&gt;The 'result' variable evaluates to 'true', but nothing happens on the Qlik Sense sheet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, when I call the 'ClearAll' method on the Doc class, nothing happens and the dimensions I have applied on the Qlik Sense sheet aren't cleared. However, it does work on the Engine API Explorer.&lt;/P&gt;&lt;P&gt;Am I missing something regarding how to select/clear fields?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Tiago&lt;/P&gt;</description>
    <pubDate>Tue, 08 Jan 2019 09:18:36 GMT</pubDate>
    <dc:creator>TiagoPedro90</dc:creator>
    <dc:date>2019-01-08T09:18:36Z</dc:date>
    <item>
      <title>enigma.js getField method not working properly</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/enigma-js-getField-method-not-working-properly/m-p/1527231#M9793</link>
      <description>&lt;P&gt;Hey everyone,&lt;/P&gt;&lt;P&gt;I'm creating a bot service that communicates with the Qlik Engine API. The createSessionObject works fine and I can ask for measures constrained by dimensions, but I've been trying to call methods that select fields that seem to be not working. Namely, the "clearAll" method or the "getField".&lt;/P&gt;&lt;P&gt;When I call the "clearAll" from an opened app the fields that are selected aren't cleared, and with the "getField" I cannot perform selects over it.&lt;/P&gt;&lt;P&gt;The app is being properly opened as I can run the "createSessionObject" properly, but the other mentioned methods just don't work properly.&lt;/P&gt;&lt;P&gt;Has anyone&amp;nbsp;ran over this same issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Tiago&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 06:55:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/enigma-js-getField-method-not-working-properly/m-p/1527231#M9793</guid>
      <dc:creator>TiagoPedro90</dc:creator>
      <dc:date>2024-11-16T06:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: enigma.js getField method not working properly</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/enigma-js-getField-method-not-working-properly/m-p/1527460#M9798</link>
      <description>&lt;P&gt;Hi Tiago,&lt;/P&gt;
&lt;P&gt;Maybe the field name is wrong or similar - when&amp;nbsp;using getField and the Engine does not find that field, you should get (If I remember right) - the promise&lt;/P&gt;
&lt;PRE&gt;{
  qHandle: null,
  qType: null
}&lt;/PRE&gt;
&lt;P&gt;And even though the filed is not found, with enigmsjs, you will still get all the field methods ('clearAll', etc...)&lt;/P&gt;
&lt;P&gt;You should check also your websocket communication with the app&lt;/P&gt;
&lt;P&gt;--&amp;nbsp;&lt;A href="https://core.qlik.com/services/qix-engine/apis/qix/doc/#getfield" target="_blank"&gt;https://core.qlik.com/services/qix-engine/apis/qix/doc/#getfield&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2019 06:59:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/enigma-js-getField-method-not-working-properly/m-p/1527460#M9798</guid>
      <dc:creator>Aiham_Azmeh</dc:creator>
      <dc:date>2019-01-08T06:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: enigma.js getField method not working properly</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/enigma-js-getField-method-not-working-properly/m-p/1527545#M9802</link>
      <description>&lt;P&gt;Hi Aaz,&lt;/P&gt;&lt;P&gt;Thanks for the response.&lt;/P&gt;&lt;P&gt;The field is correct, it works when I try over the Engine API Explorer, and I've checked it over and over again.&lt;/P&gt;&lt;P&gt;I can use the 'createSessionObject' successfully and I call the "getField" method the following way:&lt;/P&gt;&lt;PRE&gt;let qField = await this.qApp.getField('MONTH');&lt;/PRE&gt;&lt;P&gt;Which returns the following object:&lt;/P&gt;&lt;PRE&gt;_events:Object {closed: }
_maxListeners:undefined
addListener:function (type, listener) { … }
emit:function (type) { … }
genericType:undefined
handle:2
id:undefined
listeners:function (type) { … }
on:function (type, listener) { … }
once:function (type, listener) { … }
removeAllListeners:function (type) { … }
removeListener:function (type, listener) { … }
session:Session {apis: ApiCache, config: Object, intercept: Intercept, …}
setMaxListeners:function (n) { … }
type:"Field"
__proto__:Object {getCardinal: , getAndM&lt;/PRE&gt;&lt;P&gt;then I can call any field method, but with no success, i.e.:&lt;/P&gt;&lt;PRE&gt;let result = await qField.selectAlternative();&lt;/PRE&gt;&lt;P&gt;The 'result' variable evaluates to 'true', but nothing happens on the Qlik Sense sheet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, when I call the 'ClearAll' method on the Doc class, nothing happens and the dimensions I have applied on the Qlik Sense sheet aren't cleared. However, it does work on the Engine API Explorer.&lt;/P&gt;&lt;P&gt;Am I missing something regarding how to select/clear fields?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Tiago&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2019 09:18:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/enigma-js-getField-method-not-working-properly/m-p/1527545#M9802</guid>
      <dc:creator>TiagoPedro90</dc:creator>
      <dc:date>2019-01-08T09:18:36Z</dc:date>
    </item>
  </channel>
</rss>

