Forum Discussion
embed report only works first time
Hi powerbiuser55,
Can you share some details, please?
1. What's the embed mode? App Owns Data or User Owns Data.
2. What does the config file look like?
3. If you embed a different report in the same page, we have to reload the page, don't we?
Best Regards,
Dale
Thanks for your response.
Please find details below.
1) Mode (Embed/Aad) doesn't matter.
2) Similar to the example. There is no problem in either mode as long as it is the first time (page load). Therefore, config should be ok.
3) That was my question. Is there a way other than reload? For report refresh, the js sdk provides a refresh method. Similar to that, is there a refresh method for the embed api itself?
- powerbiuser558 years agoRegular Visitor
Does anyone have an update to the above? Please share.
- v-jiascu-msft8 years agoMicrosoft Employee
Hi powerbiuser55,
Do you mean reloading the new report without refreshing the browser? If so, please refer to wiki/Create-Report-in-Embed-View#load-the-new-report.
Best Regards,
Dale
- powerbiuser558 years agoRegular Visitor
Thanks for sharing the link. But, that doesn't work. I have the embed tokesn for all the reports involved. Switching to a different report with its dependent attributes (token, url etc..) and calling embed does nothing.
Is this a powerbi js sdk limiation?
I wish th powerbi js playground showed an example of this scenario.