# Setting properties in a visionWindowOpened event has no effect

**URL:** <https://forum.inductiveautomation.com/t/setting-properties-in-a-visionwindowopened-event-has-no-effect/26408>\
**Category:** Ignition\
**Created:** [July 9, 2019, 8:56pm UTC](https://forum.inductiveautomation.com/t/setting-properties-in-a-visionwindowopened-event-has-no-effect/26408 "2019-07-09T20:56:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![waldner](https://avatars.discourse-cdn.com/v4/letter/w/a5b964/32.png) [@waldner](https://forum.inductiveautomation.com/u/waldner)\
**Post date:** [July 9, 2019, 8:56pm UTC](https://forum.inductiveautomation.com/t/setting-properties-in-a-visionwindowopened-event-has-no-effect/26408/1 "2019-07-09T20:56:29Z")

</div>

I have a popup window with a label. The window receives a single custom property, so I open it as follows:

> window = system.nav.openWindow("popup\_window", {"param": 123})  
> system.nav.centerWindow(window)

In the popup window, I have this code running in the visionWindowOpened event handler:

> root\_container = system.gui.getParentWindow(event).getComponentForPath('Root Container')  
> label = system.gui.getParentWindow(event).getComponentForPath('Root Container.Label')
> 
> label.text = str(root\_container.param)

So the issue here is that when the popup appears, the label does not show "123" as its text.  
I know I could bind the label text directly to the window custom property, but I'm trying to understand why this specific way of doing things is not working.

UPDATE: it _does_ work when launching the project, but it doesn't work as expected when running in designer.

---

<div class="post-metadata">

**Author:** ![Kyle\_Chase](https://avatars.discourse-cdn.com/v4/letter/k/9de0a6/32.png) [@Kyle\_Chase](https://forum.inductiveautomation.com/u/Kyle_Chase)\
**Post date:** [July 9, 2019, 9:11pm UTC](https://forum.inductiveautomation.com/t/setting-properties-in-a-visionwindowopened-event-has-no-effect/26408/2 "2019-07-09T21:11:25Z")

</div>

visionWindowOpened and Closed events do not fire in the designer.
