# Using References for Vision Component Properties

**URL:** <https://forum.inductiveautomation.com/t/using-references-for-vision-component-properties/71867>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [March 30, 2023, 10:44pm UTC](https://forum.inductiveautomation.com/t/using-references-for-vision-component-properties/71867 "2023-03-30T22:44:00Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adam\_Woloshuk](https://avatars.discourse-cdn.com/v4/letter/a/f0a364/32.png) [@Adam\_Woloshuk](https://forum.inductiveautomation.com/u/Adam_Woloshuk)\
**Post date:** [March 30, 2023, 10:44pm UTC](https://forum.inductiveautomation.com/t/using-references-for-vision-component-properties/71867/1 "2023-03-30T22:44:00Z")

</div>

In an effort to create standardized HMI screens, I'm working on creating a reference template. I'm aware of and currently in the process of implementing this through scripts tied to startup and window open events. However, I want to confirm whether or not there is a way to set component properties in Ignition to the value of component on a different window without scripting?

Example: setting all the fonts for labels to the font used on a label in a reference window.

---

<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 31, 2023, 12:23am UTC](https://forum.inductiveautomation.com/t/using-references-for-vision-component-properties/71867/2 "2023-03-31T00:23:32Z")

</div>

Not across windows, no. Many things can be bound to Vision Client Tags, though.

---

<div class="post-metadata">

**Author:** ![Roger\_Denison](https://avatars.discourse-cdn.com/v4/letter/r/e19b73/32.png) [@Roger\_Denison](https://forum.inductiveautomation.com/u/Roger_Denison)\
**Post date:** [September 21, 2023, 6:38pm UTC](https://forum.inductiveautomation.com/t/using-references-for-vision-component-properties/71867/3 "2023-09-21T18:38:24Z")

</div>

Along these same lines, although I will be scripting:

How do you reference the property of a component in another window in the script for the current window?

For example, WindowA has a dropdown list and WindowB has a set of radio buttons.

In my visionWindowOpened script for WindowB, I want to look at the selected value of the dropdown in WindowA to determine the default radio button selection in WindowB.

I'm unclear on the proper syntax for this.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [September 21, 2023, 6:56pm UTC](https://forum.inductiveautomation.com/t/using-references-for-vision-component-properties/71867/4 "2023-09-21T18:56:04Z")

</div>

You can use [`system.gui.getWindow()`](https://docs.inductiveautomation.com/display/DOC81/system.gui.getWindow) to retrieve a reference to the actual other window object, and then walk its components as if it's local.  
Be warned that this is often an antipattern - it's _usually_ not advisable to tightly couple two windows together like this.

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [September 21, 2023, 6:58pm UTC](https://forum.inductiveautomation.com/t/using-references-for-vision-component-properties/71867/5 "2023-09-21T18:58:09Z")

</div>

> [@Roger\_Denison](#):
>
> I'm unclear on the proper syntax for this

Was window B opened from window A? Are we talking about a [parameterized window](https://forum.inductiveautomation.com/t/use-only-one-window-for-different-components-values/68062/8)?

If you are simply wanting to set up default background colors, fonts, etc for consistency throughout the project, create tags, and store these parameters there. Then, you can simply bind your window properties to the tag properties.

---

<div class="post-metadata">

**Author:** ![Roger\_Denison](https://avatars.discourse-cdn.com/v4/letter/r/e19b73/32.png) [@Roger\_Denison](https://forum.inductiveautomation.com/u/Roger_Denison)\
**Post date:** [September 21, 2023, 7:14pm UTC](https://forum.inductiveautomation.com/t/using-references-for-vision-component-properties/71867/6 "2023-09-21T19:14:54Z")

</div>

I found that instruction and I'm working on that. I'm not trying to tightly couple properties of components. It's more of a one-shot deal to create an initial default when the window opens.

I am looking at the parameterization option as well since changing the selection in the dropdown will launch WindowB.

---

<div class="post-metadata">

**Author:** ![Roger\_Denison](https://avatars.discourse-cdn.com/v4/letter/r/e19b73/32.png) [@Roger\_Denison](https://forum.inductiveautomation.com/u/Roger_Denison)\
**Post date:** [September 21, 2023, 7:16pm UTC](https://forum.inductiveautomation.com/t/using-references-for-vision-component-properties/71867/7 "2023-09-21T19:16:37Z")

</div>

No tags are involved in this operation. But as I mentioned before, I am considering the use of parameters or even Custom Properties to manage this.

---

<div class="post-metadata">

**Author:** ![Lion\_Sun](https://avatars.discourse-cdn.com/v4/letter/l/3ab097/32.png) [@Lion\_Sun](https://forum.inductiveautomation.com/u/Lion_Sun)\
**Post date:** [October 29, 2024, 6:41am UTC](https://forum.inductiveautomation.com/t/using-references-for-vision-component-properties/71867/8 "2024-10-29T06:41:00Z")

</div>

Sometimes I want the binding on a component in another window to refresh immediately, such as system.db.refresh(component, propertyName), in current window but cannot directly refer to that component， this function of system.gui.getwindow(windowPath) is a turnaround method. Good idea !!!
