Subscribe Bookmark RSS Feed

Pause Script Until After User Manually Works on Data Table

terapin

Community Trekker

Joined:

Jun 23, 2011

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

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
vince_faller

Super User

Joined:

Mar 17, 2015

Solution

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;
				)
			)
			
		)
	)
);
2 REPLIES
vince_faller

Super User

Joined:

Mar 17, 2015

Solution

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;
				)
			)
			
		)
	)
);
terapin

Community Trekker

Joined:

Jun 23, 2011

Thanks Vince,

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