Subscribe Bookmark RSS Feed

How to freeze the display in JSL

wr

Community Trekker

Joined:

Mar 3, 2015

Hi, I have a graph with several arrays of labels that are selected for display by the user. When I turn them all off, they are updated sequentially. Is there a way to freeze the display (say, similar to the "ScreenUpdating" command in Visual Basic) so that I can write (or remove all the labels) and then update/refresh the screen so that they don't appear/disappear sequentially? (I tried the display box "inval" command on the new window but it didn't help).

Thanks.

2 REPLIES
ABI

Community Trekker

Joined:

Jun 23, 2016

This is a ridiculously old thread, but I've searched for the answer for this question many, many times and it's the only post that comes up on Google. So, if anyone in the future is looking for this functionality and comes across this post, you're after the <<BeginDataUpdate and <<EndDataUpdate methods for datatables.

 

Example:

dt = CurrentDataTable();
dt<<BeginDataUpdate;
//do stuff
dt<<EndDataUpdate;
txnelson

Super User

Joined:

Jun 22, 2012

The way to freeze such display, is to move the display to a JMP Journal.

 

Interactively, you click on the chart and then use the CNTL/J to copy to a new journal.

 

In JSL:

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
obj = Bivariate( Y( :Weight ), X( :Height ) );
obj << Save Script to Journal;

 

 

Jim