I want to show a dialog to the user when a chart window is closed "Warning: This will close the associated data table!" and close the data table (with No Save) if the user selects OK and keep both the data table and the chart based on it, if the user selects "Cancel".
The script below is for the dialog box I want, but where do I need to put the statement for closing [if OK] or keeping [if Cancel] the data table?
gb << On Close(
New Window( "Are you sure?",
<<MODAL></MODAL>