Open() , save and close while script is runningHi,
Is there a way I could open the data table, save in the variable and close it while the script is running? It's annoying sometimes because the input data table will pop up. I tried using close window, close() but they didn't seem to work.
Names Default To Here( 1 );
Clear Globals();
Clear Log();
dt2 = Current Data Table();
nw = New Window( "New window",
<<MODAL></MODAL>
ScriptingRe: Open() , save and close while script is runningI think you started new topic related to this question (Bring window to front) , so we can continue discussion there, most likely related to you using modal window.
Re: Open() , save and close while script is runningHi @jthi , Quick question. I am trying to bring the variability chart window in the front or maximize it after clicking on button box "Plot". I tried using bring window to front but it's not working. Can you suggest what other syntax can be use?
Here's my script:
Names Default To Here( 1 );
dt2 = Open( "$SAMPLE_DATA/Big Class.jmp" );
nw = New Window( "New window",
<<MODAL></MODAL>
Re: Open() , save and close while script is runningIt worked. Thanks @jthi 
Re: Open() , save and close while script is runningCould hiding the window work (make it invisible). Then if you need to make it visible you can use << Show Window(1);.
Here is how to set invisible directly in Open function, but I think this requires you to have the path
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp", invisible);
wait(2);
dt << Show Window(1);
In your case you might have to first let the table open as visible and then use << Show Window(0); to hide it
Names Default To Here(1);
dt = Open();
dt << Show Window(0);
Even better might be using file_path = Pick File with Open(file_path, invisible):
dt_path = Pick File("Select JMP File",
"",
{"JMP Files|jmp"}
);
If(!IsMissing(dt_path),
dt1 = Open(dt_path, invisible);
);
View more...