Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
9 years ago
Solved

Power BI Embed hyperlink integarion with hosted application

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 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.

3 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    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. 

    • Eric_Zhang's avatar
      Eric_Zhang
      Microsoft Employee

      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.

      • eyalc's avatar
        eyalc
        Power BI Team

        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