Close a Popup window using scripting

How would you go about using scripting to close a popup window.
I have tried this but with no luck. Any Ideas.
system.nav.closeWindow(‘MaintWorkOrder’)

It could be that you have the wrong window path, so I would try iterating through all of the window names using system.gui.getWindowNames() to see if you have the right one.

Or that the event script isn’t firing for some reason.

I had the window path wrong. I just had the subfolder listed

1 Like