Get second popup to come to front?

Have a situation where a very large popup window can open a secondary popup window but it keeps opening up behind it.

I have tried

system.nav.openWindow('Pop_AddEditUser',params)
system.nav.centerWindow('Pop_AddEditUser')
window = system.gui.getWindow("Pop_AddEditUser")
window.setSelected(1)

based on some old posts I’ve seen as well as

system.nav.openWindow('Pop_AddEditUser',params)
system.nav.centerWindow('Pop_AddEditUser')
x = [win.setSelected(1) for win in system.gui.getOpenedWindows() if win.name=="Pop_AddEditUser"]

but neither of these bring the popup that was opened from within the other popup to the front. Not sure what is going wrong. Any ideas how to get the popup to come to the front?

The Layer property should help.
https://docs.inductiveautomation.com/display/DOC81/Popup+Windows#PopupWindows-Layer

1 Like

That does it with no scripting required. Thanks!

1 Like