<?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 app.selectionState OnData handler returns only 6 selections in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/app-selectionState-OnData-handler-returns-only-6-selections/m-p/60576#M871</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I am using the following code to get my current selections in a mashup:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15256545820386658 jive_text_macro" jivemacro_uid="_15256545820386658" modifiedtitle="true"&gt;
&lt;P&gt;const selState = app.selectionState();&lt;/P&gt;
&lt;P&gt;const listener = () =&amp;gt; {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; console.log('Selections', selState);&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;selState.OnData.bind(listener);&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I make selections in the mashup, I can see that the listener is fired.&lt;/P&gt;&lt;P&gt;My problem is that it returns only 6 values, even there are more values selected&lt;/P&gt;&lt;P&gt;Following is the console output screenshot (as you can see there are 8 values selected, but the selectedValues array has total 6 values). There is a property named qSelectionThreshold, which is always 6 and I am unable to change it.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/201637_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;My question would be, is it possible to get all the selected values? How to change the threshold value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 May 2018 05:22:02 GMT</pubDate>
    <dc:creator>d_pranskus</dc:creator>
    <dc:date>2018-05-07T05:22:02Z</dc:date>
    <item>
      <title>app.selectionState OnData handler returns only 6 selections</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/app-selectionState-OnData-handler-returns-only-6-selections/m-p/60576#M871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I am using the following code to get my current selections in a mashup:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15256545820386658 jive_text_macro" jivemacro_uid="_15256545820386658" modifiedtitle="true"&gt;
&lt;P&gt;const selState = app.selectionState();&lt;/P&gt;
&lt;P&gt;const listener = () =&amp;gt; {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; console.log('Selections', selState);&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;selState.OnData.bind(listener);&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I make selections in the mashup, I can see that the listener is fired.&lt;/P&gt;&lt;P&gt;My problem is that it returns only 6 values, even there are more values selected&lt;/P&gt;&lt;P&gt;Following is the console output screenshot (as you can see there are 8 values selected, but the selectedValues array has total 6 values). There is a property named qSelectionThreshold, which is always 6 and I am unable to change it.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/201637_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;My question would be, is it possible to get all the selected values? How to change the threshold value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2018 05:22:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/app-selectionState-OnData-handler-returns-only-6-selections/m-p/60576#M871</guid>
      <dc:creator>d_pranskus</dc:creator>
      <dc:date>2018-05-07T05:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: app.selectionState OnData handler returns only 6 selections</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/app-selectionState-OnData-handler-returns-only-6-selections/m-p/60577#M872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.qlik.com/qlik-users/4826"&gt;d.pranskus&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This post should help =&amp;gt; &lt;A href="https://community.qlik.com/message/925604"&gt;Re: Sense extensions : How can I change qSelectionThreshold value ?&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2018 06:02:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/app-selectionState-OnData-handler-returns-only-6-selections/m-p/60577#M872</guid>
      <dc:creator>Aiham_Azmeh</dc:creator>
      <dc:date>2018-05-07T06:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: app.selectionState OnData handler returns only 6 selections</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/app-selectionState-OnData-handler-returns-only-6-selections/m-p/1666913#M12152</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/45449"&gt;@Aiham_Azmeh&lt;/a&gt;&amp;nbsp;, is there any way of doing this? Or changing a user setting is the only workaround still today?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jan 2020 19:20:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/app-selectionState-OnData-handler-returns-only-6-selections/m-p/1666913#M12152</guid>
      <dc:creator>will_br</dc:creator>
      <dc:date>2020-01-17T19:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: app.selectionState OnData handler returns only 6 selections</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/app-selectionState-OnData-handler-returns-only-6-selections/m-p/1667217#M12162</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;There are no easy workaround for that...&lt;BR /&gt;I saw implementations that get all fileds that have selections =&amp;gt; GetField -&amp;gt; getData =&amp;gt;extract all selected&amp;nbsp;&amp;nbsp;values in that field.&lt;/P&gt;
&lt;P&gt;I unfortunately couldn't find any example in github, but I think you get the idea.&lt;/P&gt;
&lt;P&gt;I hope this helps&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2020 10:06:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/app-selectionState-OnData-handler-returns-only-6-selections/m-p/1667217#M12162</guid>
      <dc:creator>Aiham_Azmeh</dc:creator>
      <dc:date>2020-01-20T10:06:03Z</dc:date>
    </item>
  </channel>
</rss>

