Hello,
I was wondering if you could help me with this JMP Alert message I get when I run the following jsl:
//select the data in the original data table
Names Default To Here( 1 );
dt = Current Data Table();
//column names
//part 1. ask user for column names in a new window nw1
//possible Group column name (should be character)
groupby_col_names = dt << Get Column names(character, String);
//possible result column name (should be numeric)
numeric_col_names = dt << Get Column names(Numeric, String);
nw1 = New Window("Generate an EAC Table",
<<Modal,
Text Box ("Select the variable with the the historical group in it:"),
groupby_col = Radio Box(groupby_col_names),
Text Box ("Select the variable with the results:"),
result_col = Radio Box(numeric_col_names),
H List Box(
Button Box("OK",
answers = Eval List(
{
set_groupby = groupby_col << get selected,
set_resultcol = result_col << get selected
}
);
nw1 << close window;
),
Button Box("Cancel")
),
//change popup window size
<<Size Window(500,400)
);
// If cancel or red X was clicked, stop the script
If( nw1 == {Button( -1 )}, Stop() );
When I press "OK" it runs the code, and when I "X" or "Cancel", the code is not run. So, the program is as intended.
But how can I get this JMP Alert to go away?