# Changing view of a widget in Dashboard from the widget view

**URL:** <https://forum.inductiveautomation.com/t/changing-view-of-a-widget-in-dashboard-from-the-widget-view/100356>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [January 1, 2025, 8:50am UTC](https://forum.inductiveautomation.com/t/changing-view-of-a-widget-in-dashboard-from-the-widget-view/100356 "2025-01-01T08:50:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ali\_Paridari](https://avatars.discourse-cdn.com/v4/letter/a/5fc32e/32.png) [@Ali\_Paridari](https://forum.inductiveautomation.com/u/Ali_Paridari)\
**Post date:** [January 1, 2025, 8:50am UTC](https://forum.inductiveautomation.com/t/changing-view-of-a-widget-in-dashboard-from-the-widget-view/100356/1 "2025-01-01T08:50:14Z")

</div>

I have a view which is a Dashboard component. Let's call it Xview.

Each widget has a viewPath to another view and let's call that Yview.

I have a configuration table and a button in that Yview where i need to ultimately change the view of that specific widget in Xview from Yview.

Since i cannot set widget props of Xview from inside Yview, what is the proper way to do this using scripting?

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [January 1, 2025, 9:57am UTC](https://forum.inductiveautomation.com/t/changing-view-of-a-widget-in-dashboard-from-the-widget-view/100356/2 "2025-01-01T09:57:33Z")

</div>

Use message handlers.

> **[Component Message Handlers | Ignition User Manual](https://www.docs.inductiveautomation.com/docs/8.1/ignition-modules/perspective/scripting-in-perspective/component-message-handlers)**
>
> In Perspective, Component Message Handlers are the preferred way to pass parameters between components or Views. Doing this involves the system.perspective.sendMessage function. There are typically two steps involved:
