Git Product home page Git Product logo

Comments (5)

peterloudon avatar peterloudon commented on August 11, 2024 1

Hi @taarskog

I now have this working as follows:

  1. Created an html web resource with XRM Page Context.
  2. 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.

taarskog avatar taarskog commented on August 11, 2024

Don't see why it shouldn't work, but I have not tried this myself.

  1. Does it work when you embed directly onto a form or dashboard (as described in the documentation)?
  2. Are you testing using a browser or is this a mobile client?
  3. Have you enabled logging (log_level=3) and what does it say?
  4. What about Adal logging (auth_log_level=3)?

from crm-powerbi-viewer.

peterloudon avatar peterloudon commented on August 11, 2024

Hi @taarskog

Thank you for replying. The answers to your questions are:

  1. Yes, it works in both form and dashboard.
  2. 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.

Power BI Viewer Logs.txt

from crm-powerbi-viewer.

taarskog avatar taarskog commented on August 11, 2024

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.

peterloudon avatar peterloudon commented on August 11, 2024

Hi @taarskog

Just a brief update:

  1. 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.
  2. When I force isContentFrame to return "true", I get the error "Invalid type. Expected 'report', 'dashboard', or 'tile'."
  3. 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.