Comments (5)
Hi @taarskog
I now have this working as follows:
- Created an html web resource with XRM Page Context.
- Embedded the viewer in the above html web resource with the encoded parameter string appended to src.
That meets my requirement for now. So the solution was to wrap viewer in an htmal page that has XRM Page Context.
from crm-powerbi-viewer.
Don't see why it shouldn't work, but I have not tried this myself.
- Does it work when you embed directly onto a form or dashboard (as described in the documentation)?
- Are you testing using a browser or is this a mobile client?
- Have you enabled logging (log_level=3) and what does it say?
- What about Adal logging (auth_log_level=3)?
from crm-powerbi-viewer.
Hi @taarskog
Thank you for replying. The answers to your questions are:
- Yes, it works in both form and dashboard.
- Testing in browsers only (Edge, IE, Chrome, Firefox (latest versions)).
3 & 4. With the logging levels set to 3, when I reload the WebResource window, I get the messages in the attached text file.
from crm-powerbi-viewer.
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.
from crm-powerbi-viewer.
Hi @taarskog
Just a brief update:
- When I open a window that points directly to the Power BI url, (https://app.powerbi.com/reportEmbed?reportId=...) I get the Power BI logo displaying, and the code view of the window shows all the components for embedding, but nothing is displayed. It may be that I need to review the way I am doing this.
- When I force isContentFrame to return "true", I get the error "Invalid type. Expected 'report', 'dashboard', or 'tile'."
- When I embed the viewer in an iFrame, I get the error "Invalid type. Expected 'report', 'dashboard', or 'tile'."
It seems in cases 2 and 3 that the customParameters are not being correctly parsed.
from crm-powerbi-viewer.
Related Issues (20)
- How to specify predefined credentials for Power BI sign in? HOT 1
- login.microsoftonline.com refused to connect. HOT 4
- Cant get filter to work on tile HOT 4
- 401 error when opening the powerbi report HOT 9
- Filter error HOT 2
- Printing HOT 4
- Is there an issue with multiple users as administrator? HOT 7
- How can I diagnose Power BI Viewer filter issues HOT 6
- Issue showing on configuration page HOT 3
- How to filter by dynamic table and column ? HOT 1
- Can't get Opportunity record filtering to work HOT 5
- Error Signing In on Power Bi Viewer Solution's Configuration Page HOT 1
- General Questions HOT 1
- General Questions
- Any support of the unified interface? HOT 2
- DOMException: Failed to execute 'postMessage' on 'Window' on report.applyTheme HOT 2
- Redirect URL HOT 4
- Integration Question - App URL Support HOT 2
- Getting in a frame because it set 'X-Frame-Options' to 'deny'. error since the beginning of the week HOT 1
- Export data from Power Bi Visual throws error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from crm-powerbi-viewer.