# Perspective Dashboard Component Get Active Widget

**URL:** <https://forum.inductiveautomation.com/t/perspective-dashboard-component-get-active-widget/107366>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [June 13, 2025, 1:22pm UTC](https://forum.inductiveautomation.com/t/perspective-dashboard-component-get-active-widget/107366 "2025-06-13T13:22:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zachary\_Kacel1](https://avatars.discourse-cdn.com/v4/letter/z/ea666f/32.png) [@Zachary\_Kacel1](https://forum.inductiveautomation.com/u/Zachary_Kacel1)\
**Post date:** [June 13, 2025, 1:22pm UTC](https://forum.inductiveautomation.com/t/perspective-dashboard-component-get-active-widget/107366/1 "2025-06-13T13:22:42Z")

</div>

I am create a Dynamic Dashboard with the Perspective Dashboard component and keep running into the problem of not being able to capture which dashboard component I currently have selected or editing. Is there a selected/editing/deleted property I can use on on the dashboard component?

I have found a "configuring" param I can use on the embedded view side, but on the dashboard side I have no way of knowing which widget I selected for editing or removed.

---

<div class="post-metadata">

**Author:** ![kvane](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kvane/32/22228_2.png) [@kvane](https://forum.inductiveautomation.com/u/kvane)\
**Post date:** [June 17, 2025, 10:57pm UTC](https://forum.inductiveautomation.com/t/perspective-dashboard-component-get-active-widget/107366/2 "2025-06-17T22:57:41Z")

</div>

I do not think you will find a way to capture the "editing" target behavior, but you can setup a system with scripts on view focus events so that the active runtime Dashboard tracks which Widget is most recently focused.

One approach is adding a Custom [Session Property](https://www.docs.inductiveautomation.com/docs/8.1/ignition-modules/perspective/perspective-sessions/session-properties) to track the focusedWidget.

Then, on the embedded views that are used as widgets, on the Root Containers of the views use Focus Events ([onFocus](https://www.docs.inductiveautomation.com/docs/8.1/appendix/reference-pages/perspective-event-types-reference#focus-events)) to update the custom session prop as focus changes between components in the widget views. Use the custom property value as needed.
