Forum Discussion

fc's avatar
fc
Contributor
15 days ago
Solved

Get the name of the current container of an embedded dashboard

Hi everyone, In a dashboard that I'm developing I have multiple dashboards embedded into one another. Within one of the embedded dashboards I have a button that is associated to a dashbaord extende...
  • sameburn's avatar
    sameburn
    13 days ago

    Hi fc​

    So it sounds like you are ultimately trying to identify the calling button?

    If so there is an easier way... In the component service or dashboard extender br you can get the Name of the component calling the rule from DashboardExtenderArgs e.g to retrieve name property we would use 

    args.ComponentInfo.Component.Name

    This will correlate to each of your buttons in your tabbed dashboard layout and you can pivot your condition based on this

    If you want to reduce components you could approach this using dynamic dashboards and the same trick with retrieving the button properties via args

    Hope this helps

    Sam