I've got a popup window with a few custom properties/parameters.
equipmentGroup = Pump
equipment = Pump1
equipPath = [default]Pumps/Pump1
The equipPath
is used to indirectly bind to a UDT's string member (Equip_Name) for display in the popup titlebar.
Title = {Root Container.equipPath}/Equip_Name
The other 2 parameters are used to determine the path to and the parameters for a sub-template that is shown in the popup. Within that sub-template is a "next equip" button that is able to change all of the indirection within the template to other equipment in the same group. (i.e. viewing Pump1, clicking it will change everything to Pump2)
The only thing that doesn't change is the popup window title because the rest of the indirect bindings are all internal to the template where that next equip button is.
My question is, how can I "populate up" that indirection change to the popup window so that the Title of the popup window reflects the new equipment name? (If I can even do that. If not, I'll probably just remove the buttons since they're a convenience feature.)
Would there be a way to use a property change script on the sub-template to send a message that then updates the equipPath
value for the window? Not sure how to script it on the "receive" side. I've not done much message handling.