Forum Discussion
Power BI Embed hyperlink integarion with hosted application
- 9 years ago
Anonymous wrote:
We are experimenting the power bi embedded solution to integrate with our multi-tenant enterprise application. We would like to embed a hyperlink in our dashboard and handle the click event in our hosted application and take appropriate action. How can we accomplish this task? Any reference would be greatly appreciated.
Anonymous
You can bind a hyperlink to the clicktile event. The clicked tile's details(tile id, page name, groupid etc) are contained in the even.detail.
dashboard.on("tileClicked", function (event) { alert("I'm clicked!"); alert(JSON.stringify(event.detail)); });See the Power BI Javascript API wiki.
Anonymous wrote:
We are experimenting the power bi embedded solution to integrate with our multi-tenant enterprise application. We would like to embed a hyperlink in our dashboard and handle the click event in our hosted application and take appropriate action. How can we accomplish this task? Any reference would be greatly appreciated.
Anonymous
You can bind a hyperlink to the clicktile event. The clicked tile's details(tile id, page name, groupid etc) are contained in the even.detail.
dashboard.on("tileClicked", function (event) {
alert("I'm clicked!");
alert(JSON.stringify(event.detail));
});
See the Power BI Javascript API wiki.
You can use the Power BI Sample Tool to interact with an embedded report and get code samples
In the tool, after you run an embedding of a sample report, go to "Interact" on the left and choose "Events" on the top