Forum Discussion
showing only specific page when embedding multipage report
- 8 years ago
Hi Yaostha,
The possible cause could be the page name. I guess the page name couldn't be "Page3". Please check it out.
// Get a reference to the embedded report HTML element var embedContainer = $('#embedContainer')[0]; // Get a reference to the embedded report. report = powerbi.get(embedContainer); // Retrieve the page collection and loop through to collect the // page name and display name of each page and display the value. report.getPages() .then(function (pages) { pages.forEach(function(page) { var log = page.name + " - " + page.displayName; Log.logText(log); }); }) .catch(function (error) { Log.log(error); });Best Regards,
Dale
Hi karimm ! I figured this out as well, but I'm currently trying to incorporate that into my HTML Embed code that I copied. I'm assuming that I can do something like pageName = "Name" and then do it that way? Am I thinking of this the correct way?
Hi there
The correct syntax should be something like PageName=ReportSectionabcd1234
Here are the notes I keep in Notion about this topic. I hope this helps you:
Embedding report in PowerApp/Website with parameters
EXAMPLE:
Note: the rs:Embed=true part is a must. You cannot filter without this.
Spaces in table/column names should be replaced by Table_x0020_Name
Spaces in value should be replaced by %20
The pageName value can be taken from the URL in the service. NOTE: in case the page is not reachable by the published report, hence you cannot see the URL, you can publish another temporary version after unhiding the report in the designer. The pageName (code) seems to remain.
- dtremmel964 years agoFrequent Visitor
Oh, my mistake. I think we're talking about two different implementations. I'll keep looking at other posts on the forum to see if I can get to the right answer. Thank you for your help!