Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info

    I'm trying to embed the power-bi report into cordova app as explained here.
    here is my code:

    var embedConfiguration = { type: 'report', accessToken: '// access token', id: '// report id', embedUrl: 'https://embedded.powerbi.com/appTokenReportEmbed' }; var reportContainer = document.getElementById('reportContainer'); var report = powerbi.embed(reportContainer , embedConfiguration); powerbi.get(reportContainer);

    But I'm getting the following errors for some phones:
    Uncaught DOMException: Blocked a frame with origin "https://embedded.powerbi.com" from accessing a cross-origin frame.(…)
    The error doesn't depends on android version also, two phones which has android 5.1.1 - for one of the phone, power bi report works fine but for another phone getting this error.
    iframe is being loaded for all phones but the content of that iframe document is different if I get this error(In this case, it just shows the power-bi loader).
    I tried putting <access origin="*" /> in config.xml but no luck!

    Emiliano Parizzi
    Nobody is here right? The examples in the Wiki simply don't work in TypeScript. Please update the documention.
    Hello everybody
    I am stuck in an understanding issue.
    I hope someone can clearify me about it.
    I have setup my workspace collection
    and also workspace
    I have been assigned AccessKeys as well.
    I have successfully retrieved my report in the sample
    I am stuck at applying filter to my report.
    Can anyone tell me how to do that?
    I found there is some $filter={tablename/columnname} {value} format to do that
    but this doesn't work.
    Anyone up here?
    Hello Everybody.
    Anyone whos online here
    Stewart Rand
    Can anyone here help me understand why I get a message in typescript about it not being able to find the type definition for powerbi-client?
    Aliaksei Kuncevič
    just continue getting a list of warnings coming from powerbi
    quick question.. Does any of this API apply to Power BI Report server? I would like to use some of the filtering capabilities thru javascript API. it's not clear this will work outside of power bi embedded ... Thanks
    Hi guys!
    Little question: does the Power BI report server allow to specify the page report in the url? to open one embed mode directly to the good page
    Are there plans to bring the export as PDF feature to power BI embed?
    Arnar Hardarson
    Hey I'm having issues with the preload of reports in powerbi.js. The preload result from the preload does not have an "on" function.
    Also there does not seem to exist any example to showcase the feature
    @B14m3m3 Just hit exactly that problem ... element returned by preload is the iframe object, not a report.
    just found this: will see if it helps https://community.powerbi.com/t5/Developer/Phased-Embedding-API-with-Preload-error/td-p/551629
    @freefire8 Yes - just done this (as I strugg;le withtht APIs)
    In my JS add --> "&reportSection=" + pages[index].name
    This is in the promise getPages in which I'm looping through the pages; what I've seen is that the names of the pages are sometihng like "ReportSection" (for the first( and subsequently "ReportSection<number> " for others.
    I create button links to these pages and it works fine