Closed peterloudon closed 6 years ago
Don't see why it shouldn't work, but I have not tried this myself.
Hi @taarskog
Thank you for replying. The answers to your questions are:
I totally forgot that openWebResource opens a new browser window. I did not create the viewer with that scenario in mind - embedding into a from or dashboard is what I have focused on. You could consider opening a window that points directly to the Power BI url.
If that does not meet your requirements I believe the fix is simply to modify how isContentFrame is set. This may have side effects as the property is used to halt processing in the case that this is an authentication frame or popup. Not able to look at this right now, but let me know if you find a good solution.
Hi @taarskog
Just a brief update:
It seems in cases 2 and 3 that the customParameters are not being correctly parsed.
Hi @taarskog
I now have this working as follows:
That meets my requirement for now. So the solution was to wrap viewer in an htmal page that has XRM Page Context.
Hi @taarskog
I have tried to open the viewer using:
Xrm.Utility.openWebResource("his_/powerbi/viewer.html", customParameters);
customParameters contains all of the parameters obtained from the solution configuration page and passed in the Custom Parameters when embedding in a dashboard or entity form. his_/powerbi/viewer.html is displayed, but is blank.
Is there a reason why this does not work, and is there a way to overcome that reason?