# CurrentWindow Property Change Project Update

**URL:** <https://forum.inductiveautomation.com/t/currentwindow-property-change-project-update/86789>\
**Category:** Ignition\
**Tags:** ignition81, vision\
**Created:** [March 4, 2024, 8:52pm UTC](https://forum.inductiveautomation.com/t/currentwindow-property-change-project-update/86789 "2024-03-04T20:52:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![amarks](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amarks/32/45610_2.png) [@amarks](https://forum.inductiveautomation.com/u/amarks)\
**Post date:** [March 4, 2024, 8:52pm UTC](https://forum.inductiveautomation.com/t/currentwindow-property-change-project-update/86789/1 "2024-03-04T20:52:54Z")

</div>

I have a property change script that fires when a property that is bound to the currentWindow system tag changes. When I save updates from the designer and the clients update this script doesn't fire and the result is that a component is hidden until the currentWindow changes again.

How can I have this property change script also fire after those updates are saved?

---

<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 4, 2024, 9:04pm UTC](https://forum.inductiveautomation.com/t/currentwindow-property-change-project-update/86789/2 "2024-03-04T21:04:29Z")

</div>

Perhaps a Startup Client Event?

---

<div class="post-metadata">

**Author:** ![amarks](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amarks/32/45610_2.png) [@amarks](https://forum.inductiveautomation.com/u/amarks)\
**Post date:** [March 4, 2024, 9:04pm UTC](https://forum.inductiveautomation.com/t/currentwindow-property-change-project-update/86789/3 "2024-03-04T21:04:55Z")

</div>

saving triggers a client startup event?

---

<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 4, 2024, 9:09pm UTC](https://forum.inductiveautomation.com/t/currentwindow-property-change-project-update/86789/4 "2024-03-04T21:09:00Z")

</div>

The manual states that they trigger when the users logs in to a client. So, I'm not sure if that will happen on an update or not. Thus the ?.

There is the Project Update Gateway Event, but that will occur once for the system when the project updates, not for every client.

---

<div class="post-metadata">

**Author:** ![amarks](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amarks/32/45610_2.png) [@amarks](https://forum.inductiveautomation.com/u/amarks)\
**Post date:** [March 6, 2024, 9:56pm UTC](https://forum.inductiveautomation.com/t/currentwindow-property-change-project-update/86789/5 "2024-03-06T21:56:25Z")

</div>

No other ideas on this one?

edit: solved!

The property change script exists on the root container of the window. I've added another property to the window that tells me if those related components are all hidden or not (binEnc() on a few component's visible prop). I added a condition to my property change script to also fire if that property equals 0 (which it never should, and only does after saving the project).

```auto
if event.propertyName == 'currentWindow' : 
	.
	.
	.

```

tured into

```auto
if event.propertyName == 'currentWindow' or (event.source.visibleTier2 == 0): 
	.
	.
	.

```
