Forum Discussion

Lacodia's avatar
Lacodia
New Member
8 years ago
Solved

Interacting with reports in UWP App?

I'm new to PowerBi and am looking for some basic advice and direction to help us determine if our scenario is supported or not.

 

I want to embed reports into an C#, Azure/Power BI backed UWP app, drill down into the report, and click a button for an element to launch a form with the relevant data from the report, to populate the form. It looks like I can use the PowerBI-JavaScript library to find the correct page and filter to launch the correct PowerBI API to get the data, but will I be able to target the correct PowerBI element with a UWP Button using a combination of the PowerBI-JavaScript library and PowerBI API?

 

I'm not sure I understand how to filter to a user specified row and launch a UWP button form within PowerBi, or if I will need to have the user select an item within the embedded report, firing a javascrip event to load an external uwp button's datacontext?

 

Thank you,

Mark

  • Hi Lacodia,


    I'm not sure I understand how to filter to a user specified row and launch a UWP button form within PowerBi, or if I will need to have the user select an item within the embedded report, firing a javascrip event to load an external uwp button's datacontext?


    I'm not familiar with UWP button, so I may not understand the requirement above totally.  With PowerBI-JavaScript library, you can also handle the report loaded/rendered or pageChanged event without having the user select on an item within the embedded report to interact with the uwp buttons. :smileyhappy:

     

    Reference:

    https://github.com/Microsoft/PowerBI-JavaScript/wiki/Handling-Events

     

    Regards

2 Replies

  • v-ljerr-msft's avatar
    v-ljerr-msft
    Microsoft Employee

    Hi Lacodia,


    I'm not sure I understand how to filter to a user specified row and launch a UWP button form within PowerBi, or if I will need to have the user select an item within the embedded report, firing a javascrip event to load an external uwp button's datacontext?


    I'm not familiar with UWP button, so I may not understand the requirement above totally.  With PowerBI-JavaScript library, you can also handle the report loaded/rendered or pageChanged event without having the user select on an item within the embedded report to interact with the uwp buttons. :smileyhappy:

     

    Reference:

    https://github.com/Microsoft/PowerBI-JavaScript/wiki/Handling-Events

     

    Regards

    • Lacodia's avatar
      Lacodia
      New Member

      Thank you v-ljerr-msft, that's exactly what I was looking for!