# Access root container on different page

**URL:** <https://forum.inductiveautomation.com/t/access-root-container-on-different-page/56775>\
**Category:** Ignition\
**Created:** [March 3, 2022, 12:31pm UTC](https://forum.inductiveautomation.com/t/access-root-container-on-different-page/56775 "2022-03-03T12:31:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Benjamin\_Nielsen](https://avatars.discourse-cdn.com/v4/letter/b/47e85d/32.png) [@Benjamin\_Nielsen](https://forum.inductiveautomation.com/u/Benjamin_Nielsen)\
**Post date:** [March 3, 2022, 12:31pm UTC](https://forum.inductiveautomation.com/t/access-root-container-on-different-page/56775/1 "2022-03-03T12:31:54Z")

</div>

Hello,

I am using Vision.

As the title says, my question is if there is a way to access the components from a root container, on a different page than it is addressed from.

I have one window with buttons, that I would like to make a change on a different page, but without the use of internal memory tags. Therefore, a direct way to address the root container on the page is required.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [March 3, 2022, 1:01pm UTC](https://forum.inductiveautomation.com/t/access-root-container-on-different-page/56775/2 "2022-03-03T13:01:49Z")

</div>

You can use `system.gui.getOpenedWindows()` to get a reference to the window, and then get access to any component from there. I’m away from my computer at the moment so can’t really write out a reference script.

You can look in the manual for an example of how to use that function.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [March 3, 2022, 1:07pm UTC](https://forum.inductiveautomation.com/t/access-root-container-on-different-page/56775/3 "2022-03-03T13:07:41Z")

</div>

Or just use `system.gui.getWindow()` if you know the window name.

---

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [March 3, 2022, 1:11pm UTC](https://forum.inductiveautomation.com/t/access-root-container-on-different-page/56775/4 "2022-03-03T13:11:00Z")

</div>

And from here

```auto
window = system.gui.getWindow("Some window path")
rc = window.getRootContainer()
# at this point you can chain together getComponent's 
# to get what you need if its nested inside other components/containers
someComponent = rc.getComponent("someComponent")

```

---

<div class="post-metadata">

**Author:** ![Benjamin\_Nielsen](https://avatars.discourse-cdn.com/v4/letter/b/47e85d/32.png) [@Benjamin\_Nielsen](https://forum.inductiveautomation.com/u/Benjamin_Nielsen)\
**Post date:** [March 4, 2022, 6:55am UTC](https://forum.inductiveautomation.com/t/access-root-container-on-different-page/56775/5 "2022-03-04T06:55:08Z")

</div>

Thanks for all your reply’s 🙂  
Made it work
