BookmarkSubscribe
Choose Language Hide Translation Bar
Highlighted
terapin
Community Trekker

Pause Script Until After User Manually Works on Data Table

Folks,

 

I'm trying to pause my script so that a user can manually work on an open data table (manually examine data and add/delete rows or columns) before proceeding.  I've tried using a dialog box to accomplish this, but I can't work on the data table until after the dialog box is accepted.  Does anyone have any suggestions on how I can accomplish this?  

 

Clear Log();

Names Default to Here ( 1 );

dt.bigclass = Open( "$SAMPLE_DATA/Big Class.JMP" );

 New Window( "WAIT!",
<<modal,
Beep(),
V List Box(
Text Box(
"Manually Add/Delete Rows or Columns In Data Table"
),
)
);

 

// User adds or subtracts rows/columns from open data table before proceeding

// Other instructions

 

 

0 Kudos
1 ACCEPTED SOLUTION

Accepted Solutions
vince_faller
Super User

Re: Pause Script Until After User Manually Works on Data Table

Just don't make the new window modal.  Then have all the actions inside of the OK button (or whatever button). 

 

Names Default To Here( 1 );
dt.bigclass = Open( "$SAMPLE_DATA/Big Class.JMP" );
New Window( "WAIT!",	
	Beep(),
	V List Box( Text Box( "Manually Add/Delete Rows or Columns In Data Table" ), ), 
	Hlistbox(
		Buttonbox("OK", 
			<<Set Function(
				Function({self}, 
					print("do stuff");
					self<<Close Window;
				)
			)
			
		)
	)
);
Vince Faller - Predictum

View solution in original post

2 REPLIES 2
vince_faller
Super User

Re: Pause Script Until After User Manually Works on Data Table

Just don't make the new window modal.  Then have all the actions inside of the OK button (or whatever button). 

 

Names Default To Here( 1 );
dt.bigclass = Open( "$SAMPLE_DATA/Big Class.JMP" );
New Window( "WAIT!",	
	Beep(),
	V List Box( Text Box( "Manually Add/Delete Rows or Columns In Data Table" ), ), 
	Hlistbox(
		Buttonbox("OK", 
			<<Set Function(
				Function({self}, 
					print("do stuff");
					self<<Close Window;
				)
			)
			
		)
	)
);
Vince Faller - Predictum

View solution in original post

terapin
Community Trekker

Re: Pause Script Until After User Manually Works on Data Table

Thanks Vince,

That was easy.  I guess I need to read about Modal properties.

0 Kudos