<?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: dataSelected event not firing in IE in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/dataSelected-event-not-firing-in-IE/m-p/481120#M14754</link>
    <description>&lt;P&gt;Attached is my complete code.&lt;/P&gt;&lt;P&gt;when i was not adding reference to promise scripts, it was not working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;script src="~/js/jquery-3.3.1.min.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;script src="&lt;A href="https://community.fabric.microsoft.com/t5/" target="_blank"&gt;https://cdn.jsdelivr.net/npm/es6-promise@4/dist/es6-promise.min.js"&amp;gt;&amp;lt;/script&lt;/A&gt;&amp;gt;&lt;BR /&gt;&amp;lt;script src="&lt;A href="https://community.fabric.microsoft.com/t5/" target="_blank"&gt;https://cdn.jsdelivr.net/npm/es6-promise@4/dist/es6-promise.auto.min.js"&amp;gt;&amp;lt;/script&lt;/A&gt;&amp;gt;&lt;BR /&gt;&amp;lt;script src="~/js/adal.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;script src="~/js/powerbi.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;script type="text/javascript"&amp;gt;&lt;BR /&gt;(function () {&lt;BR /&gt;&lt;BR /&gt;"use strict";&lt;BR /&gt;$(document).attr("title", "Profile");&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;var subscriptionId = 'xyz.onmicrosoft.com';&lt;BR /&gt;&lt;BR /&gt;// Copy the client ID of your AAD app here once you have registered one, configured the required permissions, and&lt;BR /&gt;// allowed implicit flow &lt;A href="https://msdn.microsoft.com/en-us/office/office365/howto/get-started-with-office-365-unified-api" target="_blank"&gt;https://msdn.microsoft.com/en-us/office/office365/howto/get-started-with-office-365-unified-api&lt;/A&gt;&lt;BR /&gt;var clientId = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx';&lt;BR /&gt;var config = {&lt;BR /&gt;subscriptionId: subscriptionId,&lt;BR /&gt;clientId: clientId,&lt;BR /&gt;postLogoutRedirectUri: window.location.origin,&lt;BR /&gt;resource: '&lt;A href="https://analysis.windows.net/powerbi/api" target="_blank"&gt;https://analysis.windows.net/powerbi/api&lt;/A&gt;',&lt;BR /&gt;prompt: 'none',&lt;BR /&gt;cacheLocation: 'localStorage', // enable this for IE, as sessionStorage does not work for localhost.&lt;BR /&gt;embedUrlBase: '&lt;A href="https://app.powerbi.com/reportEmbed" target="_blank"&gt;https://app.powerbi.com/reportEmbed&lt;/A&gt;',&lt;BR /&gt;dashboardId: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',&lt;BR /&gt;response_type:'id_token'&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;// AuthenticationContext is coming from ADAL.min.js&lt;BR /&gt;var authContext = new AuthenticationContext(config);&lt;BR /&gt;&lt;BR /&gt;// Check For &amp;amp; Handle Redirect From AAD After Login&lt;BR /&gt;var isCallback = authContext.isCallback(window.location.hash);&lt;BR /&gt;&lt;BR /&gt;authContext.handleWindowCallback();&lt;BR /&gt;if (isCallback &amp;amp;&amp;amp; !authContext.getLoginError()) {&lt;BR /&gt;window.location = authContext._getItem(authContext.CONSTANTS.STORAGE.LOGIN_REQUEST);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;// If not logged in force login&lt;BR /&gt;var user = authContext.getCachedUser();&lt;BR /&gt;&lt;BR /&gt;if (!user) {&lt;BR /&gt;//alert('user login required');&lt;BR /&gt;authContext.login();&lt;BR /&gt;//alert('user login completed');&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;// Acquire token for resource.&lt;BR /&gt;authContext.acquireToken(config.resource, function (error, token) {&lt;BR /&gt;/// debugger;&lt;BR /&gt;if (error) {&lt;BR /&gt;console.log('ADAL error occurred: ' + error);&lt;BR /&gt;}&lt;BR /&gt;if (!token) {&lt;BR /&gt;console.log('token is null');&lt;BR /&gt;}&lt;BR /&gt;// Store our token&lt;BR /&gt;config.authToken = token;&lt;BR /&gt;&lt;BR /&gt;$(document).ready(function () {&lt;BR /&gt;&lt;BR /&gt;var models = window['powerbi-client'].models;&lt;BR /&gt;//debugger;&lt;BR /&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;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 embedUrl = '&lt;A href="https://app.powerbi.com/reportEmbed?reportId=guidofreport&amp;amp;groupId=guidofgroup" target="_blank"&gt;https://app.powerbi.com/reportEmbed?reportId=guidofreport&amp;amp;groupId=guidofgroup&lt;/A&gt;';&lt;BR /&gt;//var embedUrl = '&lt;A href="https://app.powerbi.com/dashboardEmbed?dashboardId=guidofdashboard&amp;amp;groupId=guidofgroup" target="_blank"&gt;https://app.powerbi.com/dashboardEmbed?dashboardId=guidofdashboard&amp;amp;groupId=guidofgroup&lt;/A&gt;';&lt;BR /&gt;// var embedUrl = "&lt;A href="https://app.powerbi.com/dashboardEmbed?dashboardId=&amp;quot;+" target="_blank"&gt;https://app.powerbi.com/dashboardEmbed?dashboardId="+&lt;/A&gt; config.dashboardId +"&amp;amp;groupId="+ config.groupId;&lt;BR /&gt;var embedUrl = '&lt;A href="https://app.powerbi.com/reportEmbed?reportId='+config.dashboardId" target="_blank"&gt;https://app.powerbi.com/reportEmbed?reportId='+config.dashboardId&lt;/A&gt;;&lt;BR /&gt;// alert(embedUrl);&lt;BR /&gt;var pbiconfig = {&lt;BR /&gt;type: 'report',&lt;BR /&gt;tokenType: models.TokenType.Aad,&lt;BR /&gt;accessToken: config.authToken,&lt;BR /&gt;embedUrl: embedUrl,&lt;BR /&gt;id: config.dashboardId,&lt;BR /&gt;pageView: 'fitToWidth',&lt;BR /&gt;pageName: 'Profile',&lt;BR /&gt;settings: {&lt;BR /&gt;filterPaneEnabled: false,&lt;BR /&gt;navContentPaneEnabled: false&lt;BR /&gt;}&lt;BR /&gt;};&lt;BR /&gt;var pbiconfigmessage = JSON.stringify(pbiconfig);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;// Get a reference to the embedded dashboard HTML element&lt;BR /&gt;var dashboardContainer = $('#divDashBoardContainer')[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, pbiconfig);&lt;BR /&gt;&lt;BR /&gt;var $dataSelectedContainer = $("#dataSelectedContainer");&lt;BR /&gt;//dashboard.off("rendered");&lt;BR /&gt;&lt;BR /&gt;// dashboard.on("rendered", function (event) {&lt;BR /&gt;// alert("rendered!");&lt;BR /&gt;//});&lt;/P&gt;&lt;P&gt;dashboard.off("dataSelected");&lt;BR /&gt;dashboard.on("dataSelected", function (e) {&lt;BR /&gt;// alert("dataSelected!");&lt;BR /&gt;var data = event.detail;&lt;BR /&gt;// alert(data);&lt;BR /&gt;// alert(JSON.stringify(data));&lt;BR /&gt;$dataSelectedContainer.text(JSON.stringify(data));&lt;BR /&gt;});&lt;BR /&gt;&lt;BR /&gt;});&lt;BR /&gt;&lt;BR /&gt;});&lt;BR /&gt;})();&lt;/P&gt;&lt;P&gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;div id="divDashBoardContainer" style="height:758px;"&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;pre id="dataSelectedContainer"&amp;gt;&lt;BR /&gt;&amp;lt;/pre&amp;gt;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Aug 2018 09:20:03 GMT</pubDate>
    <dc:creator>Yaostha</dc:creator>
    <dc:date>2018-08-06T09:20:03Z</dc:date>
    <item>
      <title>dataSelected event not firing in IE</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/dataSelected-event-not-firing-in-IE/m-p/479971#M14720</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;I am using below code to embed report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var pbiconfig = {&lt;BR /&gt;type: 'report',&lt;BR /&gt;tokenType: models.TokenType.Aad,&lt;BR /&gt;accessToken: config.authToken,&lt;BR /&gt;embedUrl: embedUrl,&lt;BR /&gt;id: config.dashboardId,&lt;BR /&gt;pageView: 'fitToWidth',&lt;BR /&gt;pageName: 'Profile',&lt;BR /&gt;settings: {&lt;BR /&gt;filterPaneEnabled: false,&lt;BR /&gt;navContentPaneEnabled: false&lt;BR /&gt;}&lt;BR /&gt;};&lt;BR /&gt;var pbiconfigmessage = JSON.stringify(pbiconfig);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;// Get a reference to the embedded dashboard HTML element&lt;BR /&gt;var dashboardContainer = $('#divDashBoardContainer')[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, pbiconfig);&lt;BR /&gt;&lt;BR /&gt;var $dataSelectedContainer = $("#dataSelectedContainer");&lt;BR /&gt;//dashboard.off("rendered");&lt;BR /&gt;&lt;BR /&gt;// dashboard.on("rendered", function (event) {&lt;BR /&gt;// alert("rendered!");&lt;BR /&gt;//});&lt;/P&gt;&lt;P&gt;dashboard.off("dataSelected");&lt;BR /&gt;dashboard.on("dataSelected", function (e) {&lt;BR /&gt;alert("dataSelected!");&lt;BR /&gt;var data = event.detail;&lt;BR /&gt;alert(data);&lt;BR /&gt;// JSON.stringify(data);&lt;BR /&gt;$dataSelectedContainer.text(JSON.stringify(data, null, ' '));&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This code is working fine in Chrome but in our IE the dataSelected event is not firing.&lt;/P&gt;&lt;P&gt;My IE version 11 on Windows 7 machine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The page has&amp;nbsp;&amp;lt;meta http-equiv="X-UA-Compatible" content="IE=edge" /&amp;gt; already.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yasotha&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Aug 2018 14:17:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/dataSelected-event-not-firing-in-IE/m-p/479971#M14720</guid>
      <dc:creator>Yaostha</dc:creator>
      <dc:date>2018-08-03T14:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: dataSelected event not firing in IE</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/dataSelected-event-not-firing-in-IE/m-p/480830#M14743</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="28904" data-lia-user-login="v-jiascu-msft" class="lia-mention lia-mention-user"&gt;v-jiascu-msft&lt;/a&gt;, do you have any idea about this?&lt;/P&gt;&lt;P&gt;I referred this,&amp;nbsp;&lt;A href="https://microsoft.github.io/PowerBI-JavaScript/demo/dataselection.html" target="_blank"&gt;https://microsoft.github.io/PowerBI-JavaScript/demo/dataselection.html&lt;/A&gt; even this is not working in IE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;yasotha&lt;/P&gt;</description>
      <pubDate>Mon, 06 Aug 2018 06:00:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/dataSelected-event-not-firing-in-IE/m-p/480830#M14743</guid>
      <dc:creator>Yaostha</dc:creator>
      <dc:date>2018-08-06T06:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: dataSelected event not firing in IE</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/dataSelected-event-not-firing-in-IE/m-p/480948#M14749</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Yasotha,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I tested it with almost the same code as yours. It worked fine in IE 11.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1. Doesn't it work completely or partially? Was there an alert message?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2. Are your codes the same in your application? Or you abstract parts from many places?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;3. Were there any warning messages in the IE?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please refer to the attachment which can work.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: 'Segoe UI'; font-size: 10.5pt; color: #333333;"&gt;Best Regards,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: 'Segoe UI'; font-size: 10.5pt; color: #333333;"&gt;Dale&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Aug 2018 07:27:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/dataSelected-event-not-firing-in-IE/m-p/480948#M14749</guid>
      <dc:creator>v-jiascu-msft</dc:creator>
      <dc:date>2018-08-06T07:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: dataSelected event not firing in IE</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/dataSelected-event-not-firing-in-IE/m-p/481111#M14753</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;SPAN class="login-bold"&gt;&lt;A title="" href="https://community.powerbi.com/t5/user/viewprofilepage/user-id/28904" target="_self"&gt;v-jiascu-msft&lt;/A&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;its part of the code i shared you but that is main in embed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However i noticed i was getting Promise is undefined error in my IE (using developer tool i found).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I added CDN reference to promise script and tested. it seems to be working, however i will do complete testing and get back.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for your quick reference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I added CDN links as below immediately after my jquery script link and before my link adal.js and powerbi.js&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="pl-c"&gt;&amp;lt;!-- Automatically provides/replaces `Promise` if missing or broken. --&amp;gt;&lt;/SPAN&gt;
&amp;lt;&lt;SPAN class="pl-ent"&gt;script&lt;/SPAN&gt; &lt;SPAN class="pl-e"&gt;src&lt;/SPAN&gt;=&lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;https://cdn.jsdelivr.net/npm/es6-promise@4/dist/es6-promise.js&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;gt;&lt;SPAN class="pl-s1"&gt;&amp;lt;&lt;/SPAN&gt;/&lt;SPAN class="pl-ent"&gt;script&lt;/SPAN&gt;&amp;gt;
&amp;lt;&lt;SPAN class="pl-ent"&gt;script&lt;/SPAN&gt; &lt;SPAN class="pl-e"&gt;src&lt;/SPAN&gt;=&lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;https://cdn.jsdelivr.net/npm/es6-promise@4/dist/es6-promise.auto.js&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;gt;&lt;SPAN class="pl-s1"&gt;&amp;lt;&lt;/SPAN&gt;/&lt;SPAN class="pl-ent"&gt;script&lt;/SPAN&gt;&amp;gt; &lt;/PRE&gt;&lt;P&gt;&lt;A href="https://github.com/stefanpenner/es6-promise" target="_blank"&gt;https://github.com/stefanpenner/es6-promise&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Aug 2018 09:07:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/dataSelected-event-not-firing-in-IE/m-p/481111#M14753</guid>
      <dc:creator>Yaostha</dc:creator>
      <dc:date>2018-08-06T09:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: dataSelected event not firing in IE</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/dataSelected-event-not-firing-in-IE/m-p/481120#M14754</link>
      <description>&lt;P&gt;Attached is my complete code.&lt;/P&gt;&lt;P&gt;when i was not adding reference to promise scripts, it was not working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;script src="~/js/jquery-3.3.1.min.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;script src="&lt;A href="https://community.fabric.microsoft.com/t5/" target="_blank"&gt;https://cdn.jsdelivr.net/npm/es6-promise@4/dist/es6-promise.min.js"&amp;gt;&amp;lt;/script&lt;/A&gt;&amp;gt;&lt;BR /&gt;&amp;lt;script src="&lt;A href="https://community.fabric.microsoft.com/t5/" target="_blank"&gt;https://cdn.jsdelivr.net/npm/es6-promise@4/dist/es6-promise.auto.min.js"&amp;gt;&amp;lt;/script&lt;/A&gt;&amp;gt;&lt;BR /&gt;&amp;lt;script src="~/js/adal.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;script src="~/js/powerbi.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;script type="text/javascript"&amp;gt;&lt;BR /&gt;(function () {&lt;BR /&gt;&lt;BR /&gt;"use strict";&lt;BR /&gt;$(document).attr("title", "Profile");&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;var subscriptionId = 'xyz.onmicrosoft.com';&lt;BR /&gt;&lt;BR /&gt;// Copy the client ID of your AAD app here once you have registered one, configured the required permissions, and&lt;BR /&gt;// allowed implicit flow &lt;A href="https://msdn.microsoft.com/en-us/office/office365/howto/get-started-with-office-365-unified-api" target="_blank"&gt;https://msdn.microsoft.com/en-us/office/office365/howto/get-started-with-office-365-unified-api&lt;/A&gt;&lt;BR /&gt;var clientId = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx';&lt;BR /&gt;var config = {&lt;BR /&gt;subscriptionId: subscriptionId,&lt;BR /&gt;clientId: clientId,&lt;BR /&gt;postLogoutRedirectUri: window.location.origin,&lt;BR /&gt;resource: '&lt;A href="https://analysis.windows.net/powerbi/api" target="_blank"&gt;https://analysis.windows.net/powerbi/api&lt;/A&gt;',&lt;BR /&gt;prompt: 'none',&lt;BR /&gt;cacheLocation: 'localStorage', // enable this for IE, as sessionStorage does not work for localhost.&lt;BR /&gt;embedUrlBase: '&lt;A href="https://app.powerbi.com/reportEmbed" target="_blank"&gt;https://app.powerbi.com/reportEmbed&lt;/A&gt;',&lt;BR /&gt;dashboardId: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',&lt;BR /&gt;response_type:'id_token'&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;// AuthenticationContext is coming from ADAL.min.js&lt;BR /&gt;var authContext = new AuthenticationContext(config);&lt;BR /&gt;&lt;BR /&gt;// Check For &amp;amp; Handle Redirect From AAD After Login&lt;BR /&gt;var isCallback = authContext.isCallback(window.location.hash);&lt;BR /&gt;&lt;BR /&gt;authContext.handleWindowCallback();&lt;BR /&gt;if (isCallback &amp;amp;&amp;amp; !authContext.getLoginError()) {&lt;BR /&gt;window.location = authContext._getItem(authContext.CONSTANTS.STORAGE.LOGIN_REQUEST);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;// If not logged in force login&lt;BR /&gt;var user = authContext.getCachedUser();&lt;BR /&gt;&lt;BR /&gt;if (!user) {&lt;BR /&gt;//alert('user login required');&lt;BR /&gt;authContext.login();&lt;BR /&gt;//alert('user login completed');&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;// Acquire token for resource.&lt;BR /&gt;authContext.acquireToken(config.resource, function (error, token) {&lt;BR /&gt;/// debugger;&lt;BR /&gt;if (error) {&lt;BR /&gt;console.log('ADAL error occurred: ' + error);&lt;BR /&gt;}&lt;BR /&gt;if (!token) {&lt;BR /&gt;console.log('token is null');&lt;BR /&gt;}&lt;BR /&gt;// Store our token&lt;BR /&gt;config.authToken = token;&lt;BR /&gt;&lt;BR /&gt;$(document).ready(function () {&lt;BR /&gt;&lt;BR /&gt;var models = window['powerbi-client'].models;&lt;BR /&gt;//debugger;&lt;BR /&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;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 embedUrl = '&lt;A href="https://app.powerbi.com/reportEmbed?reportId=guidofreport&amp;amp;groupId=guidofgroup" target="_blank"&gt;https://app.powerbi.com/reportEmbed?reportId=guidofreport&amp;amp;groupId=guidofgroup&lt;/A&gt;';&lt;BR /&gt;//var embedUrl = '&lt;A href="https://app.powerbi.com/dashboardEmbed?dashboardId=guidofdashboard&amp;amp;groupId=guidofgroup" target="_blank"&gt;https://app.powerbi.com/dashboardEmbed?dashboardId=guidofdashboard&amp;amp;groupId=guidofgroup&lt;/A&gt;';&lt;BR /&gt;// var embedUrl = "&lt;A href="https://app.powerbi.com/dashboardEmbed?dashboardId=&amp;quot;+" target="_blank"&gt;https://app.powerbi.com/dashboardEmbed?dashboardId="+&lt;/A&gt; config.dashboardId +"&amp;amp;groupId="+ config.groupId;&lt;BR /&gt;var embedUrl = '&lt;A href="https://app.powerbi.com/reportEmbed?reportId='+config.dashboardId" target="_blank"&gt;https://app.powerbi.com/reportEmbed?reportId='+config.dashboardId&lt;/A&gt;;&lt;BR /&gt;// alert(embedUrl);&lt;BR /&gt;var pbiconfig = {&lt;BR /&gt;type: 'report',&lt;BR /&gt;tokenType: models.TokenType.Aad,&lt;BR /&gt;accessToken: config.authToken,&lt;BR /&gt;embedUrl: embedUrl,&lt;BR /&gt;id: config.dashboardId,&lt;BR /&gt;pageView: 'fitToWidth',&lt;BR /&gt;pageName: 'Profile',&lt;BR /&gt;settings: {&lt;BR /&gt;filterPaneEnabled: false,&lt;BR /&gt;navContentPaneEnabled: false&lt;BR /&gt;}&lt;BR /&gt;};&lt;BR /&gt;var pbiconfigmessage = JSON.stringify(pbiconfig);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;// Get a reference to the embedded dashboard HTML element&lt;BR /&gt;var dashboardContainer = $('#divDashBoardContainer')[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, pbiconfig);&lt;BR /&gt;&lt;BR /&gt;var $dataSelectedContainer = $("#dataSelectedContainer");&lt;BR /&gt;//dashboard.off("rendered");&lt;BR /&gt;&lt;BR /&gt;// dashboard.on("rendered", function (event) {&lt;BR /&gt;// alert("rendered!");&lt;BR /&gt;//});&lt;/P&gt;&lt;P&gt;dashboard.off("dataSelected");&lt;BR /&gt;dashboard.on("dataSelected", function (e) {&lt;BR /&gt;// alert("dataSelected!");&lt;BR /&gt;var data = event.detail;&lt;BR /&gt;// alert(data);&lt;BR /&gt;// alert(JSON.stringify(data));&lt;BR /&gt;$dataSelectedContainer.text(JSON.stringify(data));&lt;BR /&gt;});&lt;BR /&gt;&lt;BR /&gt;});&lt;BR /&gt;&lt;BR /&gt;});&lt;BR /&gt;})();&lt;/P&gt;&lt;P&gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;div id="divDashBoardContainer" style="height:758px;"&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;pre id="dataSelectedContainer"&amp;gt;&lt;BR /&gt;&amp;lt;/pre&amp;gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Aug 2018 09:20:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/dataSelected-event-not-firing-in-IE/m-p/481120#M14754</guid>
      <dc:creator>Yaostha</dc:creator>
      <dc:date>2018-08-06T09:20:03Z</dc:date>
    </item>
  </channel>
</rss>

