dt = Open( "$SAMPLE_DATA/Process Measurements.jmp" );
clear log();
colnames = dt << getcolumnnames(numeric,string);
colnames = Filter Each({name}, colnames, !Is Missing(Regex(lowercase(name), "^(process).*")));
print(colnames[1]);
New Window("reacher",
H List Box(
V List Box (
dist = dt << Distribution(Continuous Distribution(Column(column(dt, colnames[1])),Process Capability( 0 )),Histograms Only),
biv = Bivariate( Y(column(dt, colnames[1])), X(column(dt, colnames[1])) )
),
cs = dt << Column Switcher(:Process 1, colnames),
// cs = dt << Column Switcher(colnames[1], colnames),
)
);
cs << Link Platform( dist );
cs << Link Platform( biv );
Trying to script column switcher for arbitrary table.
Code above works.
However, when line16 is commented and line17 uncommented, column switcher does not work
Please help