Forum Discussion

yndio's avatar
yndio
Frequent Visitor
9 years ago
Solved

Rest API Tile in webapp does not navigate to underlying report when click

Hello,

I've succesfully loaded tiles on my website using the rest API.

I thought that the tiles would behave the same way they do in Power BI portal. But my tiles don't navigate to reports when cliking on them.

Is that the normal behaivour when using the API or do I have an error in my app?

Thanks,

Pablo

2 Replies

    • denyschamberlan's avatar
      denyschamberlan
      Frequent Visitor

      I'm afraid this won't work in Power BI Embedded scenario... You just CANNOT integrate a dashboard in an iframe, then click on any dashboard tile and expect to be relocated automatically to corresponding report (and section). One thing you can do however is get informations from the tile clicked event and use the (embeddedReporUrl+reportId) to load the corresponding report in same iframe. Once you're at the report level in the iframe, it's easy to navigate through pages. I use bookmarks. However it is NOT possible to navigate back to main dashboard at this stage. (even with javascript.history.back (-1)... In this case, you'd probably need to define variables (embeddedDashboardUrl + dasboardId) on dashboard 1st load and call it back whenever needed from a button outside the iframe..,Perhaps the best scenario would be being able to generate a similar navigation menu as in Power BI app and then being able to put the same Power BI app in an iframe but I'mean afraid we're just not there yet...