<?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: RaiseCustomEvent in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/RaiseCustomEvent/m-p/138656#M4782</link>
    <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/22509"&gt;@bibble235&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are a few limitations to using Power BI JavaScript API as well, just leave a comment on GitHub.&lt;/P&gt;</description>
    <pubDate>Wed, 08 Mar 2017 10:23:40 GMT</pubDate>
    <dc:creator>v-chuncz-msft</dc:creator>
    <dc:date>2017-03-08T10:23:40Z</dc:date>
    <item>
      <title>RaiseCustomEvent</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/RaiseCustomEvent/m-p/136747#M4701</link>
      <description>&lt;P&gt;How do I raise a custom event within a custom visual which will be picked up by the reportContainer. This seems to happen by "magic" when using the categorical dataViewMappings however when using table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;    "dataViewMappings": [
        {
        "table": {
                "rows": {
					"select": [{
                    "for": { "in": "Values" }
					}],
                    "dataReductionAlgorithm": { "top": { "count": 30000000 } }
                },
                "rowCount": { "preferred": { "min": 1 } }
            }
        }
    ]&lt;/PRE&gt;&lt;P&gt;no event is fired.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried using the table template but this does not seem work. I cannot get it to display a two dimensional array. E.g. a spreadsheet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Sat, 04 Mar 2017 07:55:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/RaiseCustomEvent/m-p/136747#M4701</guid>
      <dc:creator>bibble235</dc:creator>
      <dc:date>2017-03-04T07:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: RaiseCustomEvent</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/RaiseCustomEvent/m-p/137219#M4720</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/22509"&gt;@bibble235&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on my experience, you can use addEventListener() method. As for the layout, just play with HTML and CSS.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2017 11:44:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/RaiseCustomEvent/m-p/137219#M4720</guid>
      <dc:creator>v-chuncz-msft</dc:creator>
      <dc:date>2017-03-06T11:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: RaiseCustomEvent</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/RaiseCustomEvent/m-p/137751#M4745</link>
      <description>&lt;P&gt;Managed to raise a custom event but this is still not picked up by the report.on function within the iframe. I have tried the table template which uses the categorical DataViewMappings but this does not show the data in the manner I need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All I want is to click on a row and have the report.on function be notified.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="excel.png" style="width: 381px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/31908iDE0171183300C35B/image-size/large?v=v2&amp;amp;px=999" role="button" title="excel.png" alt="excel.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure why this seems to be so hard but is the simplist way of showing data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;                report.on('dataSelected', event =&amp;gt; {
                    debugger;
                    return;
                });&lt;/PRE&gt;&lt;P&gt;Next attempt consisted of in the click&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;		let myEventData = [];
		myEventData[0] = this.innerHTML;
		let myHTMLElement = this;
		raiseCustomEvent(myHTMLElement,"dataSelected",myEventData);
		console.log(this.innerHTML);&lt;/PRE&gt;&lt;P&gt;Wondering if I should try WindowPostMessageProxy. I guess it is my lack of knowledge of the product but this seems really hard to do something which looks quite simple. Thanks for taking the time to reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2017 06:49:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/RaiseCustomEvent/m-p/137751#M4745</guid>
      <dc:creator>bibble235</dc:creator>
      <dc:date>2017-03-07T06:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: RaiseCustomEvent</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/RaiseCustomEvent/m-p/138656#M4782</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/22509"&gt;@bibble235&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are a few limitations to using Power BI JavaScript API as well, just leave a comment on GitHub.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2017 10:23:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/RaiseCustomEvent/m-p/138656#M4782</guid>
      <dc:creator>v-chuncz-msft</dc:creator>
      <dc:date>2017-03-08T10:23:40Z</dc:date>
    </item>
  </channel>
</rss>

