From a Template I am looking to have a Script that will need to access a component on the Root Container. Is there any simple way to get the Root Container of the Parent Window to the Template?
I am unsure if
event.source.parent.parent.parent....
would work in this situation, I did give it a little go and couldn't figure out how many I'd need. I have heard things about the:
It's also possible to use getComponentForPath to get specific components by name Example:
# Gets a component named textfield that is nested in a root container named "Root Container"
textfield = system.gui.getParentWindow(event).getComponentForPath('Root Container.textfield')