Forum Discussion
Anonymous
6 years agoNot applicable
Handling events for Embed iFrame not working
Hi,
I am currently in a testing phase where I am using the Microsoft Power BI Embedded Playground to test the possibility of handling events for when the users selects an element in the report.
Using the "Sample Dashboard" option I have successfully obtained my test file in the Playground environment, however when using the dataSelected event handler like:
dashboard.on("dataSelected",(event)=> {console.log(event)})
This doesn't work for the dashboard example but works perfectly fine for the reports. Could someone explain if there is a way to create events for when the data is selected for Dashboards.
I have also tried the option of calling my EmbedURL from the Sample Report section, however I get a message of "To view this report, ask the author for access", and an option to Request Access which just redirects me to the Powerbi Website. Also I am the author of this report so the message does not make sense.
Would really appreciate if someone coudld explain to me what exactly is happening. Why in the first instance I am unable handle data selected events for dashboards & tiles and why I can't use my url within the Sample Report section.
Thanks.
No Replies