I wanted to find out how to hide or close the local data filter in the following JSL script. What I have now is giving errors. I'm unsure of how to assign a variable to each of the Graph Builder plots in the Choose function.
Names Default To Here( 1 );
dt=Open("$SAMPLE_DATA/Big Class.jmp");
// Prompt for the input and create graph
rc = New Window("Choose the parameters to be plotted",
rb = Radio Box({"Female", "Male"}),
Button Box("Ok",
Choose(rb<<Get,
Graph Builder(
Variables(X(:age), Y(:sex)),
Local Data Filter(
Close Outline (1),
Add Filter( columns( :sex ), Where( :sex == "F"))
),
SendToReport(
Dispatch(
{},
"age",
ScaleBox,
{Add Ref Line( 2.5, "Dotted", "Black", "", 3 )}
)
)
),
Graph Builder(
Variables(X(:age), Y(:sex)),
Local Data Filter(
Close Outline (1),
Add Filter( columns( :sex ), Where( :sex == "M"))
),
SendToReport(
Dispatch(
{},
"age",
ScaleBox,
{Add Ref Line( 2.5, "Dotted", "Red", "", 3 )}
)
)
),
);
rb<<Close Window;
)
);
// Add this line if you do not want the collapsed Local Data Filter displayed
(Graph Builder <<top parent)["Local Data Filter"]<<visibility("Collapse");Thank you