<?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 Detecting when Clear Selection has been chosen in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Detecting-when-Clear-Selection-has-been-chosen/m-p/1288381#M7099</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have&amp;nbsp; been trying to show/hide charts based on which value has been selected from one of the dimensions/lists in the filter pane object.&amp;nbsp; I have been able to do so when a value is selected by using looping through selections as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$.each(reply.qSelectionObject.qSelections, function(key, value) {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(field=="Blah")&lt;/P&gt;&lt;P&gt;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; selections = value.qSelected;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; ............&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; } &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, this did not work when the user clears the selections, so I was wondering whether there is a way of detecting when the clear selection is triggered or any other way of dealing with clear selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Richard &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Jan 2017 14:32:07 GMT</pubDate>
    <dc:creator>rbartley</dc:creator>
    <dc:date>2017-01-20T14:32:07Z</dc:date>
    <item>
      <title>Detecting when Clear Selection has been chosen</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Detecting-when-Clear-Selection-has-been-chosen/m-p/1288381#M7099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have&amp;nbsp; been trying to show/hide charts based on which value has been selected from one of the dimensions/lists in the filter pane object.&amp;nbsp; I have been able to do so when a value is selected by using looping through selections as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$.each(reply.qSelectionObject.qSelections, function(key, value) {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(field=="Blah")&lt;/P&gt;&lt;P&gt;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; selections = value.qSelected;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; ............&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; } &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, this did not work when the user clears the selections, so I was wondering whether there is a way of detecting when the clear selection is triggered or any other way of dealing with clear selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Richard &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2017 14:32:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Detecting-when-Clear-Selection-has-been-chosen/m-p/1288381#M7099</guid>
      <dc:creator>rbartley</dc:creator>
      <dc:date>2017-01-20T14:32:07Z</dc:date>
    </item>
  </channel>
</rss>

