If reports are open and a user attempts to close a data table, JMP (by default) asks what to do: "The data table "Big Class.jmp" has other windows open. You can close all windows for this data table, or just hide it instead."
Nice feature, really. I'd like to work it in to a script I'm creating. I have identified the data table I want to work with. I then open a window with New Window() that collects a bunch of information about that data table, and eventually offers an "OK" or "Cancel" type option. But if the user interactively closes the data before closing out the script, strange things happen... especially if the user comes back and tries "OK" with a now-closed Data Table.
Is there a way to hook in to JMP's sensing of whether a report is still open? How is it done?