Hi, what is the official way to sort a data table via JSL with the option ReplaceTable()?
As discussed before, If there are open Reports, the script crashes with the error message:
... even if the graph doesn't depend of the ordering in the data table:
Names Default to Here(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
gb = dt << Graph Builder(
Size( 437, 413 ),
Graph Spacing( 4 ),
Variables( X( :height ), Y( :weight ), Overlay( :sex ) ),
Elements( Points( X, Y, Legend( 1 ) ), Smoother( X, Y, Legend( 2 ) ) )
);
dt<< Sort( By( :height ), Replace Table, Order( Ascending ));
How about replacing the text with something like:
Unfortunately, in the current version of Jmp, there is no chance to sort a table with open reports.
Jmp cannot replace the existing table because there is some chance ... hm, you know, report windows might depend on the previous ordering. Unfortunately, there is no option to check that - and there is no option to ignore it. So the Script will stop here.