I have code here to create a custom launch window, as seen in the first image. Is there a way to add a filter similar to what we normally see when we select analyze from menu?
clearCols = Expr( // Expression to clear all current settings
selTests << Remove All;
);
recallCols = Expr(
::testsRecall = selTests << Get Items;
);
dt = Current Data Table();
/* Custom Launch Window */
selTestsWindow = New Window( "Test Selection for dashboard", // GUI to select test to analyze
<<Modal,
<<return result,
Border Box( Left( 3 ), top( 2 ),
V List Box(
H List Box(
V List Box(
Panel Box( "Select Columns",
colListData =
Col List Box( all, <<set data type( "Numeric" ) )
),
),
V List Box(
Panel Box( "Tests",
Lineup Box( N Col( 2 ), Spacing( 3 ),
Button Box( "Y, Response",
selTests <<
Append( colListData << Get Selected )
),
selTests =
Col List Box( MinItems( 1 ), "Numeric" ),
)
),
),
Panel Box( "Action",
Lineup Box( N Col( 1 ),
okButton = Button Box( "OK",
recallCols;
test_list = selTests << Get Items;
),
Button Box( "Cancel" ),
Text Box( " " ),
Button Box( "Remove",
selTests << Remove Selected;
),
Button Box( "Recall",
clearCols;
/* Restore any previous settings from the global variables */
Try(
selTests << Append( ::testsRecall );
);
),
Button Box( "Reset", clearCols ),
)
)
)
)
)
);
clearCols = Expr( // Expression to clear all current settings
selTests << Remove All;
);
recallCols = Expr(
::testsRecall = selTests << Get Items;
);
JMP 16.1 MacOS