<?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: getData() and Databind not working as expected in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/getData-and-Databind-not-working-as-expected/m-p/1780726#M13800</link>
    <description>&lt;P&gt;Have you checked the qState value for the rows? It should reflect the selection state.&lt;/P&gt;</description>
    <pubDate>Sun, 07 Feb 2021 14:18:27 GMT</pubDate>
    <dc:creator>ErikWetterberg</dc:creator>
    <dc:date>2021-02-07T14:18:27Z</dc:date>
    <item>
      <title>getData() and Databind not working as expected</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/getData-and-Databind-not-working-as-expected/m-p/1779294#M13789</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;For a customer, we are working on integrating Qlik Sense into a new designed website. For this to work, we need the mechanism GetData() from a specific field (after making selections in other fields first). We than reuse the values in a JS dropdown to make selections in a Qlik Sense chart (so we combine JS filter with selection in QS but this has no issues, this works perfect).&lt;/P&gt;&lt;P&gt;The issue is with the values that we get out of the GetData and leter de Ondata.bind function.&lt;BR /&gt;This is not taking into account the previous selections made in the "app" (in our case called app1) which i would expect it would do...&lt;/P&gt;&lt;P&gt;This is the code we use (some elements of datavalues are in Dutch but I can assure you, the clear and the selections are working fine)&lt;/P&gt;&lt;P&gt;...&lt;BR /&gt;app1.field('ID').clear();&lt;BR /&gt;app1.field('ID', 'Kaart').clear();&lt;BR /&gt;app1.field('BenchMarkFilterWebKey').clear();&lt;BR /&gt;app1.field('ID').selectValues(['AR_02'],false,true);&lt;BR /&gt;app1.field('ID', 'Kaart').selectValues(['AR_02'],false,true);&lt;BR /&gt;app1.field('BenchMarkFilterWebKey').selectValues(['41002|VlaamsGewest'],false,true);&lt;BR /&gt;&lt;BR /&gt;var filterFieldData = app1.field("C_Vraag_L").getData();&lt;/P&gt;&lt;P&gt;filterFieldData.OnData.bind( function(){&lt;BR /&gt;filterFieldData.rows.forEach(function(row){&lt;BR /&gt;console.log(row.qText);&lt;BR /&gt;});&lt;BR /&gt;});&lt;BR /&gt;...&lt;/P&gt;&lt;P&gt;The issue is that in the console, all the values in the field "C_Vraag_L" are send back as result and not the "filtered" values by the previous made selections.&lt;/P&gt;&lt;P&gt;Can somebody assist?&lt;/P&gt;&lt;P&gt;Kr,&lt;/P&gt;&lt;P&gt;Diricx Timmy&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:42:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/getData-and-Databind-not-working-as-expected/m-p/1779294#M13789</guid>
      <dc:creator>timmy</dc:creator>
      <dc:date>2024-11-16T00:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: getData() and Databind not working as expected</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/getData-and-Databind-not-working-as-expected/m-p/1780726#M13800</link>
      <description>&lt;P&gt;Have you checked the qState value for the rows? It should reflect the selection state.&lt;/P&gt;</description>
      <pubDate>Sun, 07 Feb 2021 14:18:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/getData-and-Databind-not-working-as-expected/m-p/1780726#M13800</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2021-02-07T14:18:27Z</dc:date>
    </item>
  </channel>
</rss>

