Using scripts to pull different views to a main screen

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.

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.

Curious if you could benefit from using the 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.

1 Like

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.

2 Likes

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

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.

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