# Script editor, window not open value error

**URL:** <https://forum.inductiveautomation.com/t/script-editor-window-not-open-value-error/39743>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [October 16, 2020, 9:40am UTC](https://forum.inductiveautomation.com/t/script-editor-window-not-open-value-error/39743 "2020-10-16T09:40:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![trishadx](https://avatars.discourse-cdn.com/v4/letter/t/eb9ed0/32.png) [@trishadx](https://forum.inductiveautomation.com/u/trishadx)\
**Post date:** [October 16, 2020, 9:40am UTC](https://forum.inductiveautomation.com/t/script-editor-window-not-open-value-error/39743/1 "2020-10-16T09:40:34Z")

</div>

Hi guys, I'm currently editing a property change for one of my buttons. I'd like its visibility to be defined by a component of another page.  
So this button is on a docked "footer" page, that's always open and opened at start up. and the component is a tab strip, that's located in a docked "header" which is also always open & on start up.

on the script editor of property change, i have:

```auto
window = system.gui.getWindow("Header")
Tab = window.getRootContainer().getComponent("Main Tab Strip").selectedTab
if Tab == "OVERVIEW":
	value = 1
	event.source.visible = value

```

And the error I get when running it on vision is

> ValueError: Window Header is not currently open.

HOwver its all opened at start up...im not sure how to go about this. thank you all

---

<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:** [October 16, 2020, 12:50pm UTC](https://forum.inductiveautomation.com/t/script-editor-window-not-open-value-error/39743/2 "2020-10-16T12:50:08Z")

</div>

I would create a Vision Client Tag for the information that needs to be shared from the component on the header dock, and bind the button to that (or those) Client Tag to set the visibility.

---

<div class="post-metadata">

**Author:** ![trishadx](https://avatars.discourse-cdn.com/v4/letter/t/eb9ed0/32.png) [@trishadx](https://forum.inductiveautomation.com/u/trishadx)\
**Post date:** [October 19, 2020, 10:45am UTC](https://forum.inductiveautomation.com/t/script-editor-window-not-open-value-error/39743/3 "2020-10-19T10:45:43Z")

</div>

Hi phil, thank you for pointing me in the right drection! I’ve just gone over client tags. but im not 100% sure on how to get about this way on attaching the visibility property to the client tag.

could you point us a bit more please? thank you!!
