Trying to get a window to swap based on a list box choice...I am passing (according to a console print) the exact string to swap the window...error message is a window by that name cannot be found...like I said, it is returning the full path to the window....'NAV/TopWindow' eg...(with single quotes)
If I copy the exact text from the console, and paste it into the swapTo, it opens the window.
the code runs on the mouse clicked action of the list box...
#get the value from the list box
winSelect=event.source.getSelectedValue()
#run the query to get the window path
pathData=system.db.runPrepQuery("SELECT WindowPath FROM JobMenu WHERE MenuItem=?", [winSelect])
#write value so we can swap out the window
winPath = "'" + pathData.getValueAt(0, 0) + "'"
#swap the window we selected
system.nav.swapTo(winPath)