<?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: Power BI Report Server - Refresh data on embedded report in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-Refresh-data-on-embedded-report/m-p/715688#M10656</link>
    <description>&lt;P&gt;You'd need to inject the script onto the page and call the function. I was able to get this working by using an iframe to host the inject call. You can do this by placing a custom html page in the wwroot folder of report server and then embedding the report into that html page. A sample of the code I used is below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;BR /&gt;&amp;lt;html xmlns="&lt;A href="http://www.w3.org/1999/xhtml" target="_blank"&gt;http://www.w3.org/1999/xhtml&lt;/A&gt;"&amp;gt;&lt;BR /&gt;&amp;lt;head&amp;gt;&lt;BR /&gt;&amp;lt;title&amp;gt;page title&amp;lt;/title&amp;gt;&lt;BR /&gt;&amp;lt;meta http-equiv="X-UA-Compatible" content="IE=edge;" /&amp;gt;&lt;BR /&gt;&amp;lt;base href="/"&amp;gt;&lt;BR /&gt;&amp;lt;meta charset="utf-8"&amp;gt;&lt;BR /&gt;&amp;lt;meta name="description" content=""&amp;gt;&lt;BR /&gt;&amp;lt;meta name="format-detection" content="telephone=no" /&amp;gt;&lt;BR /&gt;&amp;lt;script src="&lt;A href="https://community.fabric.microsoft.com/t5/" target="_blank"&gt;https://code.jquery.com/jquery-1.12.4.js"&amp;gt;&amp;lt;/script&lt;/A&gt;&amp;gt;&lt;BR /&gt;&amp;lt;script type="text/javascript"&amp;gt;&lt;BR /&gt;$(document).ready(function () {&lt;BR /&gt;var frame = '&amp;lt;iframe src="your report url" id ="powerbiframe" name="powerbiframe" onLoad="injectJS()" runat="server" height="100%" width="100%" frameborder="0"&amp;gt;&amp;lt;/iframe&amp;gt;';&lt;BR /&gt;$("#framecontainer").append(frame);&lt;BR /&gt;})&lt;/P&gt;&lt;P&gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;script&amp;gt;&lt;BR /&gt;function injectJS() {&lt;BR /&gt;var iFrameHead = window.frames["powerbiframe"].document.getElementsByTagName("body")[0];&lt;BR /&gt;var myscript = document.createElement('script');&lt;BR /&gt;myscript.type = 'application/javascript';&lt;BR /&gt;myscript.src='dashrefresh.js';&amp;nbsp; //save your powerbirefresh function to a .js file in the same location as your html file&lt;BR /&gt;iFrameHead.appendChild(myscript);&lt;BR /&gt;}&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/head&amp;gt;&lt;BR /&gt;&amp;lt;body&amp;gt;&lt;BR /&gt;&amp;lt;div id="pbi-loading"&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;div&amp;gt;&lt;BR /&gt;&amp;lt;ui-view&amp;gt;&amp;lt;/ui-view&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;div id="reportcontainer" align="center"&amp;gt;&lt;BR /&gt;&amp;lt;div id="framecontainer"&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/body&amp;gt;&lt;BR /&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 15 Jun 2019 08:15:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-06-15T08:15:30Z</dc:date>
    <item>
      <title>Power BI Report Server - Refresh data on embedded report</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-Refresh-data-on-embedded-report/m-p/560938#M8755</link>
      <description>&lt;P&gt;Hi -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below, we have figured out the&amp;nbsp;javascript code that can be pasted into the console to get a PowerBI Report Server report to refresh the data only (i.e. clicking the refresh button) on a timer. We can get this to work whether you are on the regular screen of the report server report or with it in the embed view, but not when it is actually embedded.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The use case would be to provide "real-time" data using report server so that these reports could be kept open, refreshed, and the dropdown choices stay&amp;nbsp;as the user selected.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know how to get this code below to work when embedding a report on a website on an internal network?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;function refreshPowerBI() {&lt;/P&gt;&lt;P&gt;this.frames[0].postMessage({kind:"powerbi.reportServerHost.IToolbarActionMessage",button:"refresh"},"&lt;A href="https://dev-nopdpbirs01.cityofno.com:443" target="_blank"&gt;https://[our report server]:443&lt;/A&gt;")&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if(window.autoRefreshInterval) { clearInterval(window.autoRefreshInterval); };&lt;/P&gt;&lt;P&gt;window.autoRefreshInterval = setInterval(refreshPowerBI, 60*1000)&lt;/P&gt;</description>
      <pubDate>Tue, 06 Nov 2018 14:30:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-Refresh-data-on-embedded-report/m-p/560938#M8755</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-06T14:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Report Server - Refresh data on embedded report</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-Refresh-data-on-embedded-report/m-p/715688#M10656</link>
      <description>&lt;P&gt;You'd need to inject the script onto the page and call the function. I was able to get this working by using an iframe to host the inject call. You can do this by placing a custom html page in the wwroot folder of report server and then embedding the report into that html page. A sample of the code I used is below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;BR /&gt;&amp;lt;html xmlns="&lt;A href="http://www.w3.org/1999/xhtml" target="_blank"&gt;http://www.w3.org/1999/xhtml&lt;/A&gt;"&amp;gt;&lt;BR /&gt;&amp;lt;head&amp;gt;&lt;BR /&gt;&amp;lt;title&amp;gt;page title&amp;lt;/title&amp;gt;&lt;BR /&gt;&amp;lt;meta http-equiv="X-UA-Compatible" content="IE=edge;" /&amp;gt;&lt;BR /&gt;&amp;lt;base href="/"&amp;gt;&lt;BR /&gt;&amp;lt;meta charset="utf-8"&amp;gt;&lt;BR /&gt;&amp;lt;meta name="description" content=""&amp;gt;&lt;BR /&gt;&amp;lt;meta name="format-detection" content="telephone=no" /&amp;gt;&lt;BR /&gt;&amp;lt;script src="&lt;A href="https://community.fabric.microsoft.com/t5/" target="_blank"&gt;https://code.jquery.com/jquery-1.12.4.js"&amp;gt;&amp;lt;/script&lt;/A&gt;&amp;gt;&lt;BR /&gt;&amp;lt;script type="text/javascript"&amp;gt;&lt;BR /&gt;$(document).ready(function () {&lt;BR /&gt;var frame = '&amp;lt;iframe src="your report url" id ="powerbiframe" name="powerbiframe" onLoad="injectJS()" runat="server" height="100%" width="100%" frameborder="0"&amp;gt;&amp;lt;/iframe&amp;gt;';&lt;BR /&gt;$("#framecontainer").append(frame);&lt;BR /&gt;})&lt;/P&gt;&lt;P&gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;script&amp;gt;&lt;BR /&gt;function injectJS() {&lt;BR /&gt;var iFrameHead = window.frames["powerbiframe"].document.getElementsByTagName("body")[0];&lt;BR /&gt;var myscript = document.createElement('script');&lt;BR /&gt;myscript.type = 'application/javascript';&lt;BR /&gt;myscript.src='dashrefresh.js';&amp;nbsp; //save your powerbirefresh function to a .js file in the same location as your html file&lt;BR /&gt;iFrameHead.appendChild(myscript);&lt;BR /&gt;}&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/head&amp;gt;&lt;BR /&gt;&amp;lt;body&amp;gt;&lt;BR /&gt;&amp;lt;div id="pbi-loading"&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;div&amp;gt;&lt;BR /&gt;&amp;lt;ui-view&amp;gt;&amp;lt;/ui-view&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;div id="reportcontainer" align="center"&amp;gt;&lt;BR /&gt;&amp;lt;div id="framecontainer"&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/body&amp;gt;&lt;BR /&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jun 2019 08:15:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-Refresh-data-on-embedded-report/m-p/715688#M10656</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-15T08:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Report Server - Refresh data on embedded report</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-Refresh-data-on-embedded-report/m-p/2141604#M21379</link>
      <description>&lt;P&gt;&amp;lt;iframe style="position: fixed; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden;" frameborder=0 id="iframe" src="&lt;A href="http://your-url:8080/Reports/powerbi/your-report:embed=true" target="_blank"&gt;http://your-url:8080/Reports/powerbi/your-report:embed=true&lt;/A&gt;"&amp;gt;&lt;BR /&gt;&amp;lt;/iframe&amp;gt;&lt;BR /&gt;&amp;lt;script&amp;gt;&lt;BR /&gt;function refresh()&lt;BR /&gt;{&lt;BR /&gt;this.frames[0].frames[0].postMessage({kind:'powerbi.reportServerHost.IToolbarActionMessage',button:'refresh'},'*');&lt;BR /&gt;}&lt;BR /&gt;setInterval(refresh, 120000);&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 22:24:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-Refresh-data-on-embedded-report/m-p/2141604#M21379</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-18T22:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Report Server - Refresh data on embedded report</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-Refresh-data-on-embedded-report/m-p/2163373#M21526</link>
      <description>&lt;P&gt;Hi Vincentt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to get this to work with the September 2021 release of the PBRS. However, I'm not able to get the report to refresh using the code as you've included in your example. I was very optimistic when I used the new Desktop for the Sept2021 PBRS that includes an automatic page refresh feature. However, it seems to only be valid for the Desktop and not when uploading to the PBRS. Unfortunately! And I do not understand why this feature is included only in the Desktop...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But back to the case: On which versions and configurations did you get this to work?&lt;/P&gt;&lt;P&gt;I'm very intersted learning how to come around this hurdle!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;-A&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 14:19:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-Refresh-data-on-embedded-report/m-p/2163373#M21526</guid>
      <dc:creator>andyba</dc:creator>
      <dc:date>2021-10-29T14:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Report Server - Refresh data on embedded report</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-Refresh-data-on-embedded-report/m-p/2884494#M27383</link>
      <description>&lt;PRE&gt;&lt;SPAN class=""&gt;Hello, I am using this solution on the September 2021 release.
So far it worked without any issues.
This is the code I was using so far.

&amp;lt;iframe marginwidth="0" marginheight="0" width="100%" height="100%" scrolling="yes" frameborder=0 id="iframe" src="http://rMyrapport?rs:embed= true"&amp;gt;
&amp;lt;/iframe&amp;gt;
&amp;lt;script&amp;gt;
function shift()
{
this.frames[0].frames[0].postMessage({kind:'powerbi.reportServerHost.IToolbarActionMessage',button:'refresh'},'*');
}
setInterval(shift, 10000);
&amp;lt;/script&amp;gt;


But we installed the May 2022 version.
Since this update, this code no longer works.
Do you know why and especially how to correct.&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 04 Nov 2022 05:10:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-Refresh-data-on-embedded-report/m-p/2884494#M27383</guid>
      <dc:creator>Nicolas687</dc:creator>
      <dc:date>2022-11-04T05:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Report Server - Refresh data on embedded report</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-Refresh-data-on-embedded-report/m-p/3947232#M35053</link>
      <description>&lt;P&gt;Where/how do I find the wwwfolder you're talking about?&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 11:23:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-Refresh-data-on-embedded-report/m-p/3947232#M35053</guid>
      <dc:creator>MontherKH</dc:creator>
      <dc:date>2024-05-24T11:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Report Server - Refresh data on embedded report</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-Refresh-data-on-embedded-report/m-p/3947233#M35054</link>
      <description>&lt;P&gt;Have you figured it out?&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 11:23:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-Refresh-data-on-embedded-report/m-p/3947233#M35054</guid>
      <dc:creator>MontherKH</dc:creator>
      <dc:date>2024-05-24T11:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Report Server - Refresh data on embedded report</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-Refresh-data-on-embedded-report/m-p/3949702#M35065</link>
      <description>&lt;P&gt;Have you figured that out?&lt;/P&gt;</description>
      <pubDate>Sat, 25 May 2024 21:44:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-Refresh-data-on-embedded-report/m-p/3949702#M35065</guid>
      <dc:creator>MontherKH</dc:creator>
      <dc:date>2024-05-25T21:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Report Server - Refresh data on embedded report</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-Refresh-data-on-embedded-report/m-p/3950940#M35072</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, not.&lt;/P&gt;&lt;P&gt;We've moved away from using Power BI for such kind of dashboards for now. Some time ago, this refresh ability was added to the Desktop version for Report Server, however it did not work when deploying the dashboard to the server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess this will change with time, and actually, I've not tested the latest versions for an update on this.&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 06:35:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-Refresh-data-on-embedded-report/m-p/3950940#M35072</guid>
      <dc:creator>andyba</dc:creator>
      <dc:date>2024-05-27T06:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Report Server - Refresh data on embedded report</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-Refresh-data-on-embedded-report/m-p/3957642#M35103</link>
      <description>&lt;P&gt;Could you tell me what other tool you used for this kind of dashboards instead of Power BI?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 10:35:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-Refresh-data-on-embedded-report/m-p/3957642#M35103</guid>
      <dc:creator>MontherKH</dc:creator>
      <dc:date>2024-05-29T10:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Report Server - Refresh data on embedded report</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-Refresh-data-on-embedded-report/m-p/3957694#M35104</link>
      <description>&lt;P&gt;For the most we've established realtime dashboards by use of Python and Dash (&lt;A href="https://dash.plotly.com/" target="_blank"&gt;Dash Documentation &amp;amp; User Guide | Plotly&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is not as easy as drag-n-drop for the Open Source version. The Enterprise has quite some wrappers and I believe also a WYSIWYG editor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;P&gt;-A&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 10:43:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-Refresh-data-on-embedded-report/m-p/3957694#M35104</guid>
      <dc:creator>andyba</dc:creator>
      <dc:date>2024-05-29T10:43:07Z</dc:date>
    </item>
  </channel>
</rss>

