Hi,
I am making a script where the user inputs columns using a GUI and then the script splits the input table and make some correlation plots. The user input is very similar to the what the regular JMP Split function needs. My code for splitting looks something below, where remcol = "Drop all" or remcol="Keep all", depending on the user input.
Splitdt = dt << Split(
Split(Eval(parcollist)), // the column to split
Group(Eval(grpcollist)),
ColID(Eval(splitcoln)),
Remaining Columns(Eval(RemCol)),
Output Table Name((dt<<Get Name)||" Split")
);
The script above does not work, but this works.
Splitdt = dt << Split(
Split(Eval(parcollist)), // the column to split
Group(Eval(grpcollist)),
ColID(Eval(splitcoln)),
Remaining Columns("Drop all"),
Output Table Name((dt<<Get Name)||" Split")
);
Now my question is, how to I input the user preference for Remaining Columns as a variable? If I input the variable, it does not work, but typing would work. Unfortunately, this would take away the script flexibility, that is why I prefer using variable as input.
Thanks,
Shaira