# Can I jump to a specific embedded view within a screen that has multiple embedded views using a button?

**URL:** <https://forum.inductiveautomation.com/t/can-i-jump-to-a-specific-embedded-view-within-a-screen-that-has-multiple-embedded-views-using-a-button/96997>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [October 8, 2024, 9:10pm UTC](https://forum.inductiveautomation.com/t/can-i-jump-to-a-specific-embedded-view-within-a-screen-that-has-multiple-embedded-views-using-a-button/96997 "2024-10-08T21:10:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![HarveyQ\_Freedom](https://avatars.discourse-cdn.com/v4/letter/h/f475e1/32.png) [@HarveyQ\_Freedom](https://forum.inductiveautomation.com/u/HarveyQ_Freedom)\
**Post date:** [October 8, 2024, 9:10pm UTC](https://forum.inductiveautomation.com/t/can-i-jump-to-a-specific-embedded-view-within-a-screen-that-has-multiple-embedded-views-using-a-button/96997/1 "2024-10-08T21:10:05Z")

</div>

Okay so I have a "Lift Station Overview" screen on a Coordinate Container. The coordinate container has multiple embedded views all coming from one "template" view, then parameters are passed to each embedded view based on what exists tag wise.

Currently i have a Menu Tree that i use to navigate to this "Lift Station Overview" Screen, naturally the screen opens up on the top of the page. There are many Lift stations to display around 15 or so. At the moment if an operator needs to get to a lift Station that is at the bottom of the screen (coordinate container), they have to scroll all the way down to the correct one.

What i would like to do is have the Menu Tree have a sub menu with all the Lift stations listed by name and if an operator needs to go to a specific "Lift Station" they will click that, and instead of the Lift Station Overview opening up at the top of the screen, it opens to the specific one they selected.  
I would like to do this utilizing the same "Lift Station Overview" Page.

Does anyone have an idea of how to go about this? Is it possible? If not what would be the best workaround to achieve what i am going for instead of creating any new screens. Any help is greatly appreciated. Thanks in advance!

Note: I was thinking I could make one more screen with 1 embedded view from my"template" i'm already using, then whatever button is pressed on the sub menu it will open that corresponding screen based on parameters passed by the button. But I want to keep everything together on one screen if possible.

---

<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:** [October 8, 2024, 9:18pm UTC](https://forum.inductiveautomation.com/t/can-i-jump-to-a-specific-embedded-view-within-a-screen-that-has-multiple-embedded-views-using-a-button/96997/2 "2024-10-08T21:18:00Z")

</div>

It's a bit difficult to visualise what you are describing. A couple of screengrabs would be useful.

If you want the overview + individual station then I would be inclined to have the single station embedded view expand or collapse depending on some visibility binding and, within that view, have a dropdown to select which station it's showing. You could also script it to expand and show a station if its widget is clicked on the overview.

---

<div class="post-metadata">

**Author:** ![HarveyQ\_Freedom](https://avatars.discourse-cdn.com/v4/letter/h/f475e1/32.png) [@HarveyQ\_Freedom](https://forum.inductiveautomation.com/u/HarveyQ_Freedom)\
**Post date:** [October 8, 2024, 9:35pm UTC](https://forum.inductiveautomation.com/t/can-i-jump-to-a-specific-embedded-view-within-a-screen-that-has-multiple-embedded-views-using-a-button/96997/3 "2024-10-08T21:35:22Z")

</div>

Ill get screen grabs when i get back to my computer, but for now, let me simplify.

I have a screen with multiple embedded views on it, as opposed to having that screen open at the top of the page I would like to be able to jump to specific embedded views anywhere on that screen based on what button was pressed within a menu.

Did that help get a better visualization?

---

<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:** [October 8, 2024, 9:47pm UTC](https://forum.inductiveautomation.com/t/can-i-jump-to-a-specific-embedded-view-within-a-screen-that-has-multiple-embedded-views-using-a-button/96997/4 "2024-10-08T21:47:23Z")

</div>

Ah, so you want to auto scroll the page so that the selected machine's embed comes into view?

---

<div class="post-metadata">

**Author:** ![HarveyQ\_Freedom](https://avatars.discourse-cdn.com/v4/letter/h/f475e1/32.png) [@HarveyQ\_Freedom](https://forum.inductiveautomation.com/u/HarveyQ_Freedom)\
**Post date:** [October 8, 2024, 9:57pm UTC](https://forum.inductiveautomation.com/t/can-i-jump-to-a-specific-embedded-view-within-a-screen-that-has-multiple-embedded-views-using-a-button/96997/5 "2024-10-08T21:57:05Z")

</div>

Yes exactly!

---

<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:** [October 8, 2024, 10:09pm UTC](https://forum.inductiveautomation.com/t/can-i-jump-to-a-specific-embedded-view-within-a-screen-that-has-multiple-embedded-views-using-a-button/96997/6 "2024-10-08T22:09:43Z")

</div>

I think you just need to focus on the item you want to see.

Here's a mockup I did with five radio buttons and five labels in a flex column.

 ![Scroll focus](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/4/848c76807a8883102d07e68c5b18ba73e69d103b.png)

```python
def runAction(self, event):
	radio = self.props.index
	item = self.parent.getChild("FlexContainer").getChild("Label" + str(radio))
	item.focus()

```

In your case you might want to use a message handler to avoid all the getChild stuff which makes your application break any time you move something.

![Flex focus](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/1/415314f76092324aab5b69e551291f737d6673f3.gif)

Use [system.perspective.sendMessage | Ignition User Manual](https://docs.inductiveautomation.com/docs/8.1/appendix/scripting-functions/system-perspective/system-perspective-sendMessage) on the menu and use a [Component Message Handlers | Ignition User Manual](https://docs.inductiveautomation.com/docs/8.1/ignition-modules/perspective/scripting-in-perspective/component-message-handlers) on the container for the embedded views and in that apply the focus to the desired view.

---

<div class="post-metadata">

**Author:** ![hunterdg](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/hunterdg/32/67774_2.png) [@hunterdg](https://forum.inductiveautomation.com/u/hunterdg)\
**Post date:** [October 8, 2024, 10:43pm UTC](https://forum.inductiveautomation.com/t/can-i-jump-to-a-specific-embedded-view-within-a-screen-that-has-multiple-embedded-views-using-a-button/96997/7 "2024-10-08T22:43:14Z")

</div>

can also [use absolute references (from root)](https://forum.inductiveautomation.com/t/to-delete-a-selected-row-in-perspective-using-a-icon/90340/2)
