I am working on a script will be shared among many clients as well as being used multiple times within the project. The script takes the values of various dropdowns, textboxes, checkboxes, etc. and generates an xml file to send to an industrial printer. Is there a way to reference the calling container’s properties in the gateway script?
For example, I currently use the syntax below to access the component’s property from another component’s mouseReleased event script.
name = event.source.parent.getComponent(‘Dropdown’).selectedStringValue
I then pass the variable ‘name’ to the global script:
xml = shared.PS.printControlToXML(name, etc…)
Is I possible to do something like this in a gateway (or project) script?
name = reference_from_calling_container.getComponent(‘Dropdown’).selectedStringValue
If this is possible, can somebody help with an example of the proper syntax?