Refresh Binding On Root?

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

.getRootContainer

Not quite. Use either

.rootContainer

or

.getRootContainer()

The former is slightly more efficient.

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

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.

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

Interesting.

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.

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