# Refresh Binding On Root?

**URL:** <https://forum.inductiveautomation.com/t/refresh-binding-on-root/106016>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [May 8, 2025, 1:14am UTC](https://forum.inductiveautomation.com/t/refresh-binding-on-root/106016 "2025-05-08T01:14:53Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![mdemaris](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mdemaris/32/54639_2.png) [@mdemaris](https://forum.inductiveautomation.com/u/mdemaris)\
**Post date:** [May 8, 2025, 1:14am UTC](https://forum.inductiveautomation.com/t/refresh-binding-on-root/106016/1 "2025-05-08T01:14:53Z")

</div>

Is it possible to use `system.db.refresh()` on a custom property on the `root` container?  
The reason being, I have a query that returns a `datetime`, and a `Label` that is bound to that custom property with an Expression binding. Refreshing the label's binding does not do the job and Ignition yells at me if I try to grab the `root` for the system function.

Thanks

---

<div class="post-metadata">

**Author:** ![hunterdg](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/hunterdg/32/67774_2.png) [@hunterdg](https://forum.inductiveautomation.com/u/hunterdg)\
**Post date:** [May 8, 2025, 6:21am UTC](https://forum.inductiveautomation.com/t/refresh-binding-on-root/106016/2 "2025-05-08T06:21:31Z")

</div>

`.getRootContainer`

> **[Vision - The Window Object Scripting Functions | Ignition User Manual](https://www.docs.inductiveautomation.com/docs/8.1/appendix/components/vision-components/vision-window-object/vision-window-object-scripting#getrootcontainer)**
>
> This page details the various component and extension functions available for Vision's Window Object components.

---

<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:** [May 8, 2025, 10:47am UTC](https://forum.inductiveautomation.com/t/refresh-binding-on-root/106016/3 "2025-05-08T10:47:37Z")

</div>

> [@hunterdg](#):
>
> .getRootContainer

Not quite. Use either

`.rootContainer`

or

`.getRootContainer()`

The former is slightly more efficient.

---

<div class="post-metadata">

**Author:** ![hunterdg](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/hunterdg/32/67774_2.png) [@hunterdg](https://forum.inductiveautomation.com/u/hunterdg)\
**Post date:** [May 8, 2025, 12:21pm UTC](https://forum.inductiveautomation.com/t/refresh-binding-on-root/106016/4 "2025-05-08T12:21:27Z")

</div>

Been a while since I used Vision (why does that article exclude the ())?

---

<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:** [May 8, 2025, 12:40pm UTC](https://forum.inductiveautomation.com/t/refresh-binding-on-root/106016/5 "2025-05-08T12:40:58Z")

</div>

Because it is documenting the method names. Methods are called with parentheses. Jython auto-populates properties on java objects that have NetBeans-compliant getter and/or setter methods. Which is why java methods of the format `.getSomething()` magically also become `.something` in jython. Pretty much everywhere in jython for pretty much all java classes. (Not an Ignition feature, but a jython language feature.)

Property access is "cheaper" than method calls, so you should use the short forms.

---

<div class="post-metadata">

**Author:** ![hunterdg](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/hunterdg/32/67774_2.png) [@hunterdg](https://forum.inductiveautomation.com/u/hunterdg)\
**Post date:** [May 8, 2025, 12:56pm UTC](https://forum.inductiveautomation.com/t/refresh-binding-on-root/106016/6 "2025-05-08T12:56:14Z")

</div>

@coatl-dev - on that note, been meaning to suggest adding the NetBeans-compliant properties to ignition-api for us layfolks who use VSCode/CPython

---

<div class="post-metadata">

**Author:** ![mdemaris](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mdemaris/32/54639_2.png) [@mdemaris](https://forum.inductiveautomation.com/u/mdemaris)\
**Post date:** [May 8, 2025, 3:49pm UTC](https://forum.inductiveautomation.com/t/refresh-binding-on-root/106016/7 "2025-05-08T15:49:36Z")

</div>

Interesting.

---

<div class="post-metadata">

**Author:** ![mdemaris](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mdemaris/32/54639_2.png) [@mdemaris](https://forum.inductiveautomation.com/u/mdemaris)\
**Post date:** [May 8, 2025, 4:54pm UTC](https://forum.inductiveautomation.com/t/refresh-binding-on-root/106016/8 "2025-05-08T16:54:42Z")

</div>

Took me a minute to figure out I had to use this `window = system.gui.getWindow('path to window')` to be able to use the `getComponent()` method.

---

<div class="post-metadata">

**Author:** ![cesarcoatl](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cesarcoatl/32/84168_2.png) [@cesarcoatl](https://forum.inductiveautomation.com/u/cesarcoatl)\
**Post date:** [May 9, 2025, 7:25am UTC](https://forum.inductiveautomation.com/t/refresh-binding-on-root/106016/9 "2025-05-09T07:25:09Z")

</div>

Feel free to reach out or fork and submit a PR.
