# Using scripts to pull different views to a main screen

**URL:** <https://forum.inductiveautomation.com/t/using-scripts-to-pull-different-views-to-a-main-screen/110277>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [August 29, 2025, 2:14pm UTC](https://forum.inductiveautomation.com/t/using-scripts-to-pull-different-views-to-a-main-screen/110277 "2025-08-29T14:14:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![cseigworth16](https://avatars.discourse-cdn.com/v4/letter/c/96bed5/32.png) [@cseigworth16](https://forum.inductiveautomation.com/u/cseigworth16)\
**Post date:** [August 29, 2025, 2:14pm UTC](https://forum.inductiveautomation.com/t/using-scripts-to-pull-different-views-to-a-main-screen/110277/1 "2025-08-29T14:14:22Z")

</div>

as the title suggests im trying to use a script to move different views to my main screen based of on click events. here is is my views.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/7/7733c8e60aae44366d7dde4ea05900f0f4002638.png)

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/e/de60b25fbd01db448915192d8afe04cd14c4e118.png)

this is my homepage

I’m trying to make it so when i click on a piece of equipment it pulls the information for that equipment to the bottom panels, i.e. when i click BallisticSeperator\_1 it pulls BalSep1\_CtrlPanel to the control\_zone embedded view.

I was going to try to use a command like self.parent with .getchild to change the props.path but im not sure how that would work with this setup. I found it might be easier to use message handlers instead.

---

<div class="post-metadata">

**Author:** ![Chris\_Bingham](https://avatars.discourse-cdn.com/v4/letter/c/e5b9ba/32.png) [@Chris\_Bingham](https://forum.inductiveautomation.com/u/Chris_Bingham)\
**Post date:** [August 29, 2025, 2:44pm UTC](https://forum.inductiveautomation.com/t/using-scripts-to-pull-different-views-to-a-main-screen/110277/2 "2025-08-29T14:44:11Z")

</div>

Curious if you could benefit from using the [Perspective - Dashboard](https://www.docs.inductiveautomation.com/docs/8.1/appendix/components/perspective-components/perspective-display-palette/perspective-dashboard) component. I haven’t updated a dashboard via binding at runtime, but believe it’s possible.  
I envision that you would define a click-action on any widget from your overview pages, which does nothing but write a value to a `session.custom` property. Then, relevant `viewParams` on your dashboard component would be bound to the same session prop and update accordingly.

---

<div class="post-metadata">

**Author:** ![Ryan\_Deardorff](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan_deardorff/32/63815_2.png) [@Ryan\_Deardorff](https://forum.inductiveautomation.com/u/Ryan_Deardorff)\
**Post date:** [August 29, 2025, 2:44pm UTC](https://forum.inductiveautomation.com/t/using-scripts-to-pull-different-views-to-a-main-screen/110277/3 "2025-08-29T14:44:29Z")

</div>

> [@cseigworth16](#):
>
> self.parent with .getchild

Don’t do this! Create a custom property on the view to store the path, and bind the view path of the bottom panel to it. Traversing components via `self.parent` or `.getChild()` or the like can cause problems if/when you start reorganizing/renaming them.

---

<div class="post-metadata">

**Author:** ![cseigworth16](https://avatars.discourse-cdn.com/v4/letter/c/96bed5/32.png) [@cseigworth16](https://forum.inductiveautomation.com/u/cseigworth16)\
**Post date:** [August 29, 2025, 2:57pm UTC](https://forum.inductiveautomation.com/t/using-scripts-to-pull-different-views-to-a-main-screen/110277/4 "2025-08-29T14:57:21Z")

</div>

ill look into it. i dove into using message handler and that seems to be working as well.

---

<div class="post-metadata">

**Author:** ![nideyijuyidong](https://avatars.discourse-cdn.com/v4/letter/n/7cd45c/32.png) [@nideyijuyidong](https://forum.inductiveautomation.com/u/nideyijuyidong)\
**Post date:** [August 29, 2025, 3:20pm UTC](https://forum.inductiveautomation.com/t/using-scripts-to-pull-different-views-to-a-main-screen/110277/5 "2025-08-29T15:20:57Z")

</div>

Why not use click events to directly change the path and params of the embedded view? You can configure outgoing params on the main\_screan and then configure the bindings on the zone views.

---

<div class="post-metadata">

**Author:** ![cseigworth16](https://avatars.discourse-cdn.com/v4/letter/c/96bed5/32.png) [@cseigworth16](https://forum.inductiveautomation.com/u/cseigworth16)\
**Post date:** [August 29, 2025, 7:15pm UTC](https://forum.inductiveautomation.com/t/using-scripts-to-pull-different-views-to-a-main-screen/110277/6 "2025-08-29T19:15:51Z")

</div>

thats what im using but with message handlers, i think it should work well with message handlers as ill have multiple pieces of equipment changing multiple different views within my homepage. Basically my onclick event send out the message handler message
