Hi,
Details of my script:
Part 1: open a new table so that user fills values
Part 2: wait for the user to fill values and take the response to proceed
Part 3: proceed with the remaining script
I am struggling in part 2 because if I use Modal windows, I cannot fill the values in the table.
I would like to generate a new window which will wait on user input OK" to proceed but should not interrupt the user while filling data in the table.
I have tried
Q = New Window("Please click OK when done", <If(Arg(Q[1], 1) == 1, *rest of the script*, Wait(5)).
But this is highly ineffective as the Modal interrupts and prevents from any other user input.
I tried without Modal, but the If clause didn't seem to work.
Please suggest a better way (if any) to model this instead of a *wait(n)* statement.
Appreciate your help!
Thanks
If you structure your program into function() and/or Expr() elements you can use non modal user input windows which will allow for the user to do other JMP activities and then when ready, run items from the user window that you created. The script below is a very simple example
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA\Big Class.jmp" );
ShowResults = Expr( Show( TheResults ) );
NW = New Window( "User Input",
Text Box( "Enter in all your data and then Press the Button" ),
Spacer Box( size( 1, 15 ) ),
Button Box( "Click Here to Run",
NW << Close Window;
TheResults = Col Mean( :Height );
ShowResults;
)
);