cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
] />

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
hogi
Level XIII

close data table without save

If a JSL script is running ...

When I select 2++ data tables in the Window list and press DEL, I get the dialog:

Unbenannt.png

On the other hand, when I select a single file and try to close it, the save file dialog opens - without the option to say : Don't save.

-> any trick to close a singe data table when a script is running?

 

3 REPLIES 3
Thierry_S
Super User

Re: close data table without save

Hi,

Assuming your tables are dt1 and dt2, to close dt2 without saving in a script, use the command line:

Close (dt2, NoSave);

Let us know if this addresses your question.

Best,

TS

 

Thierry R. Sornasse
hogi
Level XIII

Re: close data table without save

it's not about JSL scripting.

I want to use the GUI to close a data table.

In the background a JSL script is running - and the script changes how JMP reacts on User interaction with the GUI.
If the user selects 2++ data tables and wants to close them ,the standard window is displayed. If the user wants to close a single data table, they fall into the trap: close! -> save? -> close dialog | close! -> save? -> close dialog | close! ...

Craige_Hales
Super User

Re: close data table without save

You can clear the dirty flag from JSL after changing the table, but then it won't prompt at all when closed. You could add a tool to do that.

I've hit this issue as well. My current project is running off the scheduler with tasks rescheduling themselves multiple times per second. The weird close behavior does not happen. There are no sleeps in the JSL, only in the scheduler. Here I've moved the scheduler from its window to my window: 

sDum = Schedule( 0, Empty() ); // dummy scheduler
repDum = sDum  << getcontainer; // the parent of the outline that holds the scheduler
sched = Remove From( repDum, 1 ); // steal the scheduler from the window it opens
sched << Close( 0 ) << settitle( "scheduler" );
repDum << closewindow; // and close the unwanted window
...
newwindow("connections", vlistbox( hlistbox(... , sched , ...) , ... ));

Screenshot_2026-03-01_20-37-47.png

The technique for grabbing the scheduler has changed since the last time I used it in News Feed  which used <<parent to get the report.

 

Craige

Recommended Articles