Hidden report unable to closeI have a script that queries a database and sorts my data prior to exporting a number of graphs to a powerpoint presentation. The script appears to function properly the first time I run it however fails everytime after this.
I get the following error in the log that I believe is occuring on the sort that is done following the query.
"JMP cannot replace the existing table because there are report windows that depend on the previous ordering."
The sort is simply
homedt << Sort( By(:time), Order(Ascending), Replace Table);
The plots are Control Charts that are arranged in list boxes that are taken as pictures for clean exporting to the powerpoint. None of these appear to have discrete 'windows' that need to be closed. The script itself does not produce any visible windows when it runs (as intended). I've tried every version of Close All() I could but the window list doesn't show any other windows or reports, hidden or otherwise, so I'm at a loss at what's preventing it from running. Thanks for any help you can provide.
Re: Hidden report unable to closeThat appears to have done the trick. Thanks!Re: Hidden report unable to closeWhen reports are created that are not placed into a window, they are "owned" by the top-most JSL display box created. Simply clearing the symbol would be enough to close the report. In the example below, the script would fail at the second <
dt = Open("$SAMPLE_DATA/Big Class.jmp");
dt << Sort( By(:height), Order(Ascending), Replace Table);
r1 = Platform(dt, dt<<RUN script=""></RUN>