<?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 JavaScript API - Data Selection Events - Catch Deselect Event in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/JavaScript-API-Data-Selection-Events-Catch-Deselect-Event/m-p/106860#M3727</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;great work with the JavaScript API!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With reference to &lt;A href="https://microsoft.github.io/PowerBI-JavaScript/demo/dataselection.html" target="_self"&gt;Scenario 7: Data Selection in the Power BI JavaScript API demo.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have successfully managed to embed our report and catch&amp;nbsp;event.detail data after user click on the embedded power BI report.&lt;/P&gt;&lt;P&gt;However, we&amp;nbsp;have not yet managed to catch deselect/unselect event to reset the in-page report filters. For instance,&amp;nbsp;when you click directly on the bar graphs to filter the data, and then you click again on the same bar graph - the visuals&amp;nbsp;are updated but not the data selected event...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have any suggestion on how to catch this "deselect/unselect" event?&lt;/P&gt;</description>
    <pubDate>Wed, 28 Dec 2016 09:15:28 GMT</pubDate>
    <dc:creator>JohnKris</dc:creator>
    <dc:date>2016-12-28T09:15:28Z</dc:date>
    <item>
      <title>JavaScript API - Data Selection Events - Catch Deselect Event</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/JavaScript-API-Data-Selection-Events-Catch-Deselect-Event/m-p/106860#M3727</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;great work with the JavaScript API!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With reference to &lt;A href="https://microsoft.github.io/PowerBI-JavaScript/demo/dataselection.html" target="_self"&gt;Scenario 7: Data Selection in the Power BI JavaScript API demo.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have successfully managed to embed our report and catch&amp;nbsp;event.detail data after user click on the embedded power BI report.&lt;/P&gt;&lt;P&gt;However, we&amp;nbsp;have not yet managed to catch deselect/unselect event to reset the in-page report filters. For instance,&amp;nbsp;when you click directly on the bar graphs to filter the data, and then you click again on the same bar graph - the visuals&amp;nbsp;are updated but not the data selected event...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have any suggestion on how to catch this "deselect/unselect" event?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2016 09:15:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/JavaScript-API-Data-Selection-Events-Catch-Deselect-Event/m-p/106860#M3727</guid>
      <dc:creator>JohnKris</dc:creator>
      <dc:date>2016-12-28T09:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript API - Data Selection Events - Catch Deselect Event</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/JavaScript-API-Data-Selection-Events-Catch-Deselect-Event/m-p/107277#M3746</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/17745"&gt;@JohnKris&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;great work with the JavaScript API!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With reference to &lt;A href="https://microsoft.github.io/PowerBI-JavaScript/demo/dataselection.html" target="_self"&gt;Scenario 7: Data Selection in the Power BI JavaScript API demo.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have successfully managed to embed our report and catch&amp;nbsp;event.detail data after user click on the embedded power BI report.&lt;/P&gt;
&lt;P&gt;However, we&amp;nbsp;have not yet managed to catch deselect/unselect event to reset the in-page report filters. For instance,&amp;nbsp;when you click directly on the bar graphs to filter the data, and then you click again on the same bar graph - the visuals&amp;nbsp;are updated but not the data selected event...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you have any suggestion on how to catch this "deselect/unselect" event?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/17745"&gt;@JohnKris&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That "reset" by clicking and clicking again seems just the &lt;A href="https://powerbi.microsoft.com/en-us/documentation/powerbi-service-visual-interactions/" target="_self"&gt;Visualization interactions in a Power BI report&lt;/A&gt;. As per &lt;A href="https://github.com/Microsoft/PowerBI-JavaScript/wiki/Handling-Events" target="_self"&gt;Handling Events&lt;/A&gt;&amp;nbsp;page on github, it lists all events supported so far and there seems no such "&lt;SPAN&gt;"deselect/unselect" event.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;The github documentation on the Power BI Javascript API is very limited, I'll escalate a content request internally and would share with you if there're more documents.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2016 09:59:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/JavaScript-API-Data-Selection-Events-Catch-Deselect-Event/m-p/107277#M3746</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2016-12-29T09:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript API - Data Selection Events - Catch Deselect Event</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/JavaScript-API-Data-Selection-Events-Catch-Deselect-Event/m-p/107287#M3748</link>
      <description>&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;After I created this post we actually managed a workaround, almost by accident. We catched the "deselect" event by using the error handler event. See image, we get "error: CustomEvent", and inside the detail: Object we get a message saying "Could not serialize a data point."&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="error.png" style="width: 528px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/24657i6DFD38D20D16C6C9/image-size/large?v=v2&amp;amp;px=999" role="button" title="error.png" alt="error.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyways, it would be very good with a detailed documentation update. As developers we spend a lot of time with trial and error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2016 10:08:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/JavaScript-API-Data-Selection-Events-Catch-Deselect-Event/m-p/107287#M3748</guid>
      <dc:creator>JohnKris</dc:creator>
      <dc:date>2016-12-29T10:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript API - Data Selection Events - Catch Deselect Event</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/JavaScript-API-Data-Selection-Events-Catch-Deselect-Event/m-p/153140#M5175</link>
      <description>&lt;P&gt;Hi, &amp;nbsp;I'm having the same issue. &amp;nbsp;Would you mind posting how you caught the event?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2017 02:13:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/JavaScript-API-Data-Selection-Events-Catch-Deselect-Event/m-p/153140#M5175</guid>
      <dc:creator>mjfulke</dc:creator>
      <dc:date>2017-04-04T02:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript API - Data Selection Events - Catch Deselect Event</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/JavaScript-API-Data-Selection-Events-Catch-Deselect-Event/m-p/381747#M11340</link>
      <description>&lt;P&gt;We are in the same situation, can you please provide more details on how you acheived this event?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Mar 2018 13:46:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/JavaScript-API-Data-Selection-Events-Catch-Deselect-Event/m-p/381747#M11340</guid>
      <dc:creator>rponugoti</dc:creator>
      <dc:date>2018-03-22T13:46:05Z</dc:date>
    </item>
  </channel>
</rss>

