I have a JMP table that contains categories, subcategories and spec limits that I need to reference in a data table. I'm sure there are many ways to do this but I wrote formulas in two added columns that converts to a JMP script when the columns are selected and the values pasted into an empty JMP script.
Added Column 1 contains the formula-
If(Row() == 1,
"dt=Current Data Table();"
)
Added Column 2 contains the formula-
"Try(Eval(Eval Expr( :" || :Process || " << Set Property( \!"Spec Limits\!", {LSL( "
|| Char( :LSL ) || " ), Target( " || Char( :Target ) || " ), USL( " || Char( :USL )
|| " ), Show Limits( 1 )} ))););";
"Try((Column(\!"" || :Process || "\!") << Set Selected(1););dt << group columns(\!""
|| :TYPE || "\!");dt << deselect column group( \!"" || :TYPE || "\!" ););" ||
"Try(Eval(Eval Expr(:" || :Process || " << Set Property(\!"Notes\!", \!"" ||
:Subgroup || "\!"))););";
Process is the property name Column. This will be coherent with the data column names in the data table.
LSL is the lower spec limit Column.
USL is the upper spec limit Column.
Type is the group Column.
Subgroup is the notes Column.
I am able to manually select the columns, do a copy and paste, which gives a working script. To add the next layer of automation I wanted to have the script select and copy the values from the two target columns, open the script window and paste the content.
Where I'm stuck is on getting the script to copy and paste the values contained in the columns?
Any help appreciated.
Slán
SpannerHead