Forum Discussion
Avoid report re embedding on route change in Angular
HI Marco57,
According to your description, it sounds like you want to avoid the user changes on your report?
If that is the case, I'd like to suggest you not sharing the 'edit' permission to this report, then changes on this content will be reset when the report reload.
Regards,
Xiaoxin Sheng
- Marco575 years agoHelper III
Hi Anonymous,
I actually want to keep the changes from user to the report as long as they did not ask explicitlly to refresh the report, thus re embedding it and getting the original version of it. I am currently embedding it as view mode only.
Some temporary changes are being made from the user but when he navigates to another root of the web application embedding the report, then the embedded report is destroyed and embedded again from scratch when user gets back to the report root of the web application.
What I want is to find a way to not re start the full embedding process when Angular changes its route to a differente one from within the web application. If the user explicitly refreshed the web application, then it is ok that it embeds a report from scratch, but not on route change.
Thanks
Rgds
Marc.
- Anonymous5 years agoNot applicable
Hi Marco57,
So you mean to keep current changes avoid refresh when you change data source?
If that is the case, you can enable the persistent filter or try to create a global variable to save current filters and restore them to the new report contents after the report refreshed:Enable persistent filters in a Power BI embedded analytics application | Microsoft Docs
Create, edit, and save an embedded report | Microsoft Docs
Regards,
Xiaoxin Sheng