<?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: Engine API selecting a field value in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Engine-API-selecting-a-field-value/m-p/1783940#M13871</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;After selectValues you need to get the result and then invoke a promise to reload your other objects. e.g.&lt;/P&gt;&lt;P&gt;let exampleVisualisationRender= new exampleVisualisation(exampleData)&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;object.selectValues( [&lt;BR /&gt;{qText: "1234", qIsNumeric: true, qNumber: 1234}&lt;/P&gt;&lt;P&gt;]).then((result) =&amp;gt;{&lt;/P&gt;&lt;P&gt;Promise.all([ExampleData.open()]).then(() =&amp;gt; {&lt;BR /&gt;exampleVisualisationRender.init()&lt;/P&gt;&lt;P&gt;})})&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;</description>
    <pubDate>Thu, 18 Feb 2021 17:20:46 GMT</pubDate>
    <dc:creator>andyjalexlive</dc:creator>
    <dc:date>2021-02-18T17:20:46Z</dc:date>
    <item>
      <title>Engine API selecting a field value</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Engine-API-selecting-a-field-value/m-p/1671313#M12247</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've recently started to create Mashups using the Engine API. Can someone tell me how i select a value of a field in the Qlik sense app using the Engine API?&lt;/P&gt;&lt;P&gt;e.g. I have a field in my Qlik Sense App called CustomerID and i want to select where CustomerID = 1&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:23:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Engine-API-selecting-a-field-value/m-p/1671313#M12247</guid>
      <dc:creator>andyjalexlive</dc:creator>
      <dc:date>2024-11-16T03:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Engine API selecting a field value</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Engine-API-selecting-a-field-value/m-p/1671379#M12249</link>
      <description>&lt;P&gt;Use &lt;A href="https://help.qlik.com/en-US/sense-developer/November2019/APIs/EngineAPI/services-Doc-GetField.html" target="_self"&gt;GetField&amp;nbsp;&lt;/A&gt;to get a field object,&amp;nbsp; then there are some different methods:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://help.qlik.com/en-US/sense-developer/November2019/APIs/EngineAPI/services-Field-SelectValues.html" target="_self"&gt;SelectValues&lt;/A&gt; if you have the exact value&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://help.qlik.com/en-US/sense-developer/November2019/APIs/EngineAPI/services-Field-LowLevelSelect.html" target="_self"&gt;LowLevelSelect&lt;/A&gt; if you know the index&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://help.qlik.com/en-US/sense-developer/November2019/APIs/EngineAPI/services-Field-Select.html" target="_self"&gt;Select&lt;/A&gt; if you want to use wildcards etc&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Fri, 31 Jan 2020 15:09:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Engine-API-selecting-a-field-value/m-p/1671379#M12249</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2020-01-31T15:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: Engine API selecting a field value</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Engine-API-selecting-a-field-value/m-p/1672233#M12285</link>
      <description>&lt;P&gt;Thanks for your reply Eric&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying this but to no avail&amp;nbsp;&lt;/P&gt;&lt;P&gt;app.getField('&lt;SPAN&gt;CustomerID&amp;nbsp;&lt;/SPAN&gt;')&lt;BR /&gt;.then((result) =&amp;gt; result.selectValues(10000067)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;error :&lt;/P&gt;&lt;P&gt;JSON parse error&lt;BR /&gt;at Intercept.errorResponseInterceptor (error-response-interceptor.js:1&lt;/P&gt;&lt;P&gt;Do you know what i'm doing wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;BR /&gt;Andy&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 22:47:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Engine-API-selecting-a-field-value/m-p/1672233#M12285</guid>
      <dc:creator>andyjalexlive</dc:creator>
      <dc:date>2020-02-05T22:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: Engine API selecting a field value</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Engine-API-selecting-a-field-value/m-p/1783612#M13863</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6966"&gt;@ErikWetterberg&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I am able to run the SelectValues after selecting a field in my app, and qReturn= true on response.&amp;nbsp; However, the table objects in my App are not filtered at all.&amp;nbsp; Are you able to explain how I can use this SelectValues method and then apply the field selections as a filter to an entire sheet or to a specific table object?&amp;nbsp; Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 21:49:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Engine-API-selecting-a-field-value/m-p/1783612#M13863</guid>
      <dc:creator>beatYesterday</dc:creator>
      <dc:date>2021-02-17T21:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: Engine API selecting a field value</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Engine-API-selecting-a-field-value/m-p/1783940#M13871</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;After selectValues you need to get the result and then invoke a promise to reload your other objects. e.g.&lt;/P&gt;&lt;P&gt;let exampleVisualisationRender= new exampleVisualisation(exampleData)&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;object.selectValues( [&lt;BR /&gt;{qText: "1234", qIsNumeric: true, qNumber: 1234}&lt;/P&gt;&lt;P&gt;]).then((result) =&amp;gt;{&lt;/P&gt;&lt;P&gt;Promise.all([ExampleData.open()]).then(() =&amp;gt; {&lt;BR /&gt;exampleVisualisationRender.init()&lt;/P&gt;&lt;P&gt;})})&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 17:20:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Engine-API-selecting-a-field-value/m-p/1783940#M13871</guid>
      <dc:creator>andyjalexlive</dc:creator>
      <dc:date>2021-02-18T17:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Engine API selecting a field value</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Engine-API-selecting-a-field-value/m-p/1785635#M13896</link>
      <description>&lt;P&gt;The first parameter should be an array.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2021 06:04:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Engine-API-selecting-a-field-value/m-p/1785635#M13896</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2021-02-24T06:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: Engine API selecting a field value</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Engine-API-selecting-a-field-value/m-p/1787591#M13948</link>
      <description>&lt;P&gt;Thanks,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/16607"&gt;@andyjalexlive&lt;/a&gt;&amp;nbsp; &amp;nbsp;This reply helped a lot.&amp;nbsp; For other newcomers like myself while I read the documentation I did not realize a couple of things that prevented the SelectValues method from actually being applied.&amp;nbsp; Below are the points I (finally) figured out to solve this:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Dates are stored as numeric values in Qlik.&amp;nbsp; This means if you are trying to filter by a date formatted like '2021/02/01'(YYYY-MM-DD), then you need to convert that into it's numeric value.&amp;nbsp; This numeric value is calculated in teh same way as in Excell, meaning it's just an incremental count of days since 1/1/1900.&amp;nbsp;A simple google search will provide details for how to do this.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;When you are selecting a numeric value, that select match does NOT go in the qText attribute.&amp;nbsp; Rather, you set qIsNumeric = True AND send the numeric value in the qNumber attribute. (This is what was my&amp;nbsp; specific problem that I originally outlined above)&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Tue, 02 Mar 2021 17:17:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Engine-API-selecting-a-field-value/m-p/1787591#M13948</guid>
      <dc:creator>beatYesterday</dc:creator>
      <dc:date>2021-03-02T17:17:47Z</dc:date>
    </item>
  </channel>
</rss>

