<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />When I close a data table with reports still open, it pops up the alert:
"The data table has other windows open.
You can close all windows for this data table, or just hide it instead.
Close All Hide Data Table Cancel"
Is there a way to prevent this in the preferences? None of the options with a "prompt" option seem to control this popup.
I'm looking for the GUI equivalent of the "Close/nosave" option.
I ended up solving this with a single line script that I assigned to a hot-key and button. Pasted below for others if you open and close a lot of tables with graphs and want to avoid the close and save dialogs.
close(current data table(),nosave);
To close a group of tables that start with the same keyword or ID in the title, I use:
openDTs = {};
//get a list of open tables, and assign it to the openDTs variable
For( i = 1, i <= N Table(), i++,
Insert Into( openDTs, Data Table( i ) );
);
//iterate through open tables, and close them if the title starts with the keyword or ID
For( i = 1, i <= Nitems(openDTs), i++,
thisName = openDTs[i] << get name;
parsedWords = words (thisName);
if (parsedWords[1] == KEYorID, Close(openDTs[i],No Save))
);
I find this helpful for cleaning up a bunch of windows after a deep dive or repeated analysis. You just need to append the same id to the beginning of each table when opening it.