I am using a template to call a popup window for device config.
The same popup is used for many devices of the same type.
when opening the device config popup, i change the title to allow the user to know wich device it is configuring. this works nice, using : system.nav.openWindowInstance(windowpath [, parameters])
the only thing i dislike is that if the window is already opened, the user can reopen the window for the same device multiple times.
Note that the same popup can be opened more than once simultaneously if different devices are opened.
i would like to prevent the user to open the same device popup window twice (same parameter, title), if window is already opened i would like to bring focus on it instead or reopening it.
system.gui.getOpenedWindows() and system.gui.getOpenedWindowNames() gives me name of the window, but every popup of the window is the same. i cannot distinguished wich devicee it is.
on the client system menu bar, the window menu displays the correct title. I would like to get the same list as the windows system menu displays to filter either open or bring to front the popup window.
how can i get this title or parameter tupple instead of the names?
or is there a way to do it efficiently other than what described?