<?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 Clear selection using toolbar on extension in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Clear-selection-using-toolbar-on-extension/m-p/1104255#M4985</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a custom chart extension which supports multiple selection. Based on the documentation, the method selectValues() displays the selection toolbar. Indeed, it is displayed and the correct styling is applied to my selected / unselected elements (unselected elements are opacity 30%). My extension sets the selection by adding the .selected css class to the selected element. But if I click on the "Clear Selection" button in the toolbar, the selection is cleared in the app, but not in my extension. The .selected classes stays, even after the selection is confirmed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on this thread (&lt;A href="https://community.qlik.com/thread/144930"&gt;How to catch "clear selections" event ?&lt;/A&gt;), I expected the selected class to be removed. I also tried to overwrite the clear event without success. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea on how to fix this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 May 2016 12:22:20 GMT</pubDate>
    <dc:creator>maxim1500</dc:creator>
    <dc:date>2016-05-09T12:22:20Z</dc:date>
    <item>
      <title>Clear selection using toolbar on extension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Clear-selection-using-toolbar-on-extension/m-p/1104255#M4985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a custom chart extension which supports multiple selection. Based on the documentation, the method selectValues() displays the selection toolbar. Indeed, it is displayed and the correct styling is applied to my selected / unselected elements (unselected elements are opacity 30%). My extension sets the selection by adding the .selected css class to the selected element. But if I click on the "Clear Selection" button in the toolbar, the selection is cleared in the app, but not in my extension. The .selected classes stays, even after the selection is confirmed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on this thread (&lt;A href="https://community.qlik.com/thread/144930"&gt;How to catch "clear selections" event ?&lt;/A&gt;), I expected the selected class to be removed. I also tried to overwrite the clear event without success. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea on how to fix this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2016 12:22:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Clear-selection-using-toolbar-on-extension/m-p/1104255#M4985</guid>
      <dc:creator>maxim1500</dc:creator>
      <dc:date>2016-05-09T12:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Clear selection using toolbar on extension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Clear-selection-using-toolbar-on-extension/m-p/1104256#M4986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Have you tried clearing the 'selected' css class in your paint method? That might help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2016 13:36:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Clear-selection-using-toolbar-on-extension/m-p/1104256#M4986</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2016-05-09T13:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: Clear selection using toolbar on extension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Clear-selection-using-toolbar-on-extension/m-p/1104257#M4987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Eric for your help! I tried your suggestion, but Paint is not called when the user clicks on Clear Selection. It might help otherwise though (when closing the selection...).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 13:31:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Clear-selection-using-toolbar-on-extension/m-p/1104257#M4987</guid>
      <dc:creator>maxim1500</dc:creator>
      <dc:date>2016-05-13T13:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: Clear selection using toolbar on extension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Clear-selection-using-toolbar-on-extension/m-p/1104258#M4988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had this same issue.&amp;nbsp; The "cancel selections" button was not clearing the "selected" class when using the standard selection model.&lt;BR /&gt;I set a watch on the selection count and used D3.js to clear the class (you could also use jQuery).&amp;nbsp; This seems to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;scope.$watch(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; function() {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return scope.layout.qHyperCube.qDimensionInfo[0].qStateCounts.qSelected;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,function(newValue, oldValue) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (newValue != oldValue &amp;amp;&amp;amp; newValue == 0) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; d3.selectAll(".selected").classed("selected",false);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2016 04:09:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Clear-selection-using-toolbar-on-extension/m-p/1104258#M4988</guid>
      <dc:creator>larry_w_</dc:creator>
      <dc:date>2016-12-01T04:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: Clear selection using toolbar on extension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Clear-selection-using-toolbar-on-extension/m-p/1104259#M4989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the tip! I'll try that!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2016 11:54:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Clear-selection-using-toolbar-on-extension/m-p/1104259#M4989</guid>
      <dc:creator>maxim1500</dc:creator>
      <dc:date>2016-12-01T11:54:31Z</dc:date>
    </item>
  </channel>
</rss>

