Thanks pturmel! I’m trying to elaborate on your valuable suggestion, but I’m facing the problem I describe next. I’ve defined Popup1 and Popup2: a button on Popup1 opens Popup2 and calls
putClientProperty on the newly created Popup2
window = system.nav.openWindow('Popup2')
On Popup1 I’ve also defined a Custom Method
sayHello(): if I try to call sayHello() from a button on Popup2
I get the exception:
AttributeError: 'com.inductiveautomation.factorypmi.application.FPM' object has no attribute 'sayHello'
Thanks in advance
If I pass the reference to Popup1 through a
shared.test.win variable in the shared test script, then Popup2 will manage to call
sayHello() on Popup1.
Same effect if the
sayHello() Custom Method is defined at the Root Container level, instead of the Window level. It behaves as the reference stored in the Client Property looses the Custom Methods. Do I have to cast the object I get with the