I'm replying to this thread because of similar problem for value ordering. I still can't figure out when to use Expr and Eval Expr for Column Properties in JSL for JMP 12 or JMP 13. It seems the general form should work:
:Set << Set Property( "Value Ordering", Eval( {mylist} ) );
:Set << Set Property( "Value Ordering", Eval( {my1,my2} ) );
In the Big Class data, try to set column :sex to put "M" before "F":
my1 = "M";
my2 = "F";
:sex << Set Property("Value Ordering",Eval({my1,my2}));
But it puts in the text "my1" and "my2" instead of "M" and "F".
I copied the post for how to add spec limits as a column property. http://www.jmp.com/support/notes/46/953.html
It appears you have to use Expr and Eval Expr just to get the character variables to show. If you try this portion only:
:sex << Set Property("Value Ordering",{Expr(my1),Expr(my2)})
You get the text "Expr" and "Expr" in the column property. If you include Eval Expr with the Expr, you get returned to the log the correct phrase.
Eval Expr(
:sex << Set Property("Value Ordering",{Expr(my1),Expr(my2)})
);
returns:
:sex << Set Property( "Value Ordering", {"M", "F"} )
and finally this entire code sets the column property correctly.
Eval(
Eval Expr(
:sex << Set Property("Value Ordering",{Expr(my1),Expr(my2)})
)
);
The explanation from the spec limits post was "the column stores the column property with the values supplied without evaluation or validation of the supplied arguments. In order to add column properties using JSL code which contains variables, the script must convert any variables to their actual values."