# Enable/disable components between windows

**URL:** <https://forum.inductiveautomation.com/t/enable-disable-components-between-windows/2038>\
**Category:** Archived Topics\
**Created:** [July 15, 2010, 7:04pm UTC](https://forum.inductiveautomation.com/t/enable-disable-components-between-windows/2038 "2010-07-15T19:04:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jcam](https://avatars.discourse-cdn.com/v4/letter/j/a88e57/32.png) [@Jcam](https://forum.inductiveautomation.com/u/Jcam)\
**Post date:** [July 15, 2010, 7:04pm UTC](https://forum.inductiveautomation.com/t/enable-disable-components-between-windows/2038/1 "2010-07-15T19:04:18Z")

</div>

How can I use a button in one window to enable a button in a different window?

---

<div class="post-metadata">

**Author:** ![Dravik](https://avatars.discourse-cdn.com/v4/letter/d/e274bd/32.png) [@Dravik](https://forum.inductiveautomation.com/u/Dravik)\
**Post date:** [July 15, 2010, 8:08pm UTC](https://forum.inductiveautomation.com/t/enable-disable-components-between-windows/2038/2 "2010-07-15T20:08:46Z")

</div>

You can enable/disable the components via a Client tag. Just change the client tag state using one button and it will affect the other. Just bind that client tag to the Enabled property of the component(s)you wish to disable/enable.

---

<div class="post-metadata">

**Author:** ![AlThePal](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/althepal/32/3603_2.png) [@AlThePal](https://forum.inductiveautomation.com/u/AlThePal)\
**Post date:** [July 16, 2010, 8:09pm UTC](https://forum.inductiveautomation.com/t/enable-disable-components-between-windows/2038/3 "2010-07-16T20:09:22Z")

</div>

If the other window is open, you can do this directly without needing client tags. You can get a reference to the other window using `window = system.gui.getWindow('windowName')`You can then get a reference to any control in the window using something like `window.getRootContainer().getComponent('buttonName')`depending on where the control is in the hierarchy.
