<?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: PowerBi Embedded Dashboard - title click event issue in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/PowerBi-Embedded-Dashboard-title-click-event-issue/m-p/830972#M21221</link>
    <description>&lt;P&gt;You are trying to access elements inside an iframe. It is rendered from a different domain and that's not allowed from javascript. This is probably why you are getting the error.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Oct 2019 07:43:26 GMT</pubDate>
    <dc:creator>ELNINO</dc:creator>
    <dc:date>2019-10-29T07:43:26Z</dc:date>
    <item>
      <title>PowerBi Embedded Dashboard - title click event issue</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBi-Embedded-Dashboard-title-click-event-issue/m-p/574108#M17737</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to extend the embedded dashboard to&amp;nbsp;support drill through using "tileClicked" event but I am getting "TileClickError" whenever I am clicking the dashboard.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the code I am using&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;script&amp;gt;&lt;BR /&gt;// Read embed application token from Model&lt;BR /&gt;var accessToken = "@Model.EmbedToken.Token";&lt;/P&gt;&lt;P&gt;// Read embed URL from Model&lt;BR /&gt;var embedUrl = "@Html.Raw(Model.EmbedUrl)";&lt;/P&gt;&lt;P&gt;// Read dashboard Id from Model&lt;BR /&gt;var embedDashboardId = "@Model.Id";&lt;/P&gt;&lt;P&gt;// Get models. models contains enums that can be used.&lt;BR /&gt;var models = window['powerbi-client'].models;&lt;/P&gt;&lt;P&gt;// Embed configuration used to describe the what and how to embed.&lt;BR /&gt;// This object is used when calling powerbi.embed.&lt;BR /&gt;// This also includes settings and options such as filters.&lt;BR /&gt;// You can find more information at&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://github.com/Microsoft/PowerBI-JavaScript/wiki/Embed-Configuration-Details" target="_blank"&gt;https://github.com/Microsoft/PowerBI-JavaScript/wiki/Embed-Configuration-Details&lt;/A&gt;.&lt;BR /&gt;var config = {&lt;BR /&gt;type: 'dashboard',&lt;BR /&gt;tokenType: models.TokenType.Embed,&lt;BR /&gt;accessToken: accessToken,&lt;BR /&gt;embedUrl: embedUrl,&lt;BR /&gt;id: embedDashboardId,&lt;BR /&gt;pageView: 'fitToWidth'&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;// Get a reference to the embedded dashboard HTML element&lt;BR /&gt;var dashboardContainer = $('#dashboardContainer')[0];&lt;/P&gt;&lt;P&gt;// Embed the dashboard and display it within the div container.&lt;BR /&gt;var dashboard = powerbi.embed(dashboardContainer, config);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// Dashboard.off removes a given event handler if it exists.&lt;BR /&gt;dashboard.off("loaded");&lt;/P&gt;&lt;P&gt;// Dashboard.on will add an event handler which prints to Log window.&lt;BR /&gt;dashboard.on("loaded", function () {&lt;BR /&gt;console.log("Loaded");&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;dashboard.on("error", function (event) {&lt;BR /&gt;// alert(JSON.stringfy(event.detail));&lt;BR /&gt;console.log(event.detail);&lt;/P&gt;&lt;P&gt;dashboard.off("error");&lt;BR /&gt;});&lt;BR /&gt;&lt;BR /&gt;dashboard.off("tileClicked");&lt;BR /&gt;dashboard.on("tileClicked", function (event) {&lt;BR /&gt;alert("Inside titleclicked");&lt;BR /&gt;console.log(event);&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gokul&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Nov 2018 04:47:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBi-Embedded-Dashboard-title-click-event-issue/m-p/574108#M17737</guid>
      <dc:creator>gokulreva</dc:creator>
      <dc:date>2018-11-28T04:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBi Embedded Dashboard - title click event issue</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBi-Embedded-Dashboard-title-click-event-issue/m-p/830972#M21221</link>
      <description>&lt;P&gt;You are trying to access elements inside an iframe. It is rendered from a different domain and that's not allowed from javascript. This is probably why you are getting the error.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 07:43:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBi-Embedded-Dashboard-title-click-event-issue/m-p/830972#M21221</guid>
      <dc:creator>ELNINO</dc:creator>
      <dc:date>2019-10-29T07:43:26Z</dc:date>
    </item>
  </channel>
</rss>

