cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • DownloadSemiconductor Toolkit: Tools to create wafer maps, add wafer geometry to graphics, explore die defects & compare wafers.
  • Discovery Summit 2026: Early User Edition - September 23-24.Register. It's free.
  • Use JMP Clinical with CDISC-compliant data. Review studies, ID safety and efficacy signals & communicate findings with interactive graphics. Register to see how. Aug. 27, 2 pm US ET.

Discussions

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

Test if data table is locked

I know that I can lock and unlock a data table through the Lock Data Table() command, but how do I test if a data table is locked? A table locked through Lock Data Table() returns Empty() when using the Get Edit Lock() function. 

 

//:*/

dt<<Lock Data Table(1);
/*:

Scriptable[]
//:*/
dt << Get Edit Lock();
/*:

Empty()

3 REPLIES 3
txnelson
Super User

Re: Test if data table is locked

From the Scripting Index Example

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt << Set Edit Lock( "Add Rows", "Delete Columns" );
Wait( 2 );
dt << Get Edit Lock();

     Help==>Scripting Index

search on "Lock"

Jim
MarkDayton
Level IV

Re: Test if data table is locked

Thanks, but I've gotten into the habit of using the red triangle drop down to lock the data table, and Get Edit Lock() returns empty, which doesn't make sense. My expectation is that it should return a list: {"Modify Cells", "Add Rows", "Delete Rows", "Add Columns", "Delete Columns"}, when the table is locked either through the drop down or Lock Data Table(1).

txnelson
Super User

Re: Test if data table is locked

I would add that request to the JMP Wish List

Jim

Recommended Articles