提示:JSL choices for properties are the same as those in the Column Properties menu in the Column Info window. The arguments for each property correspond to the settings in the Column Info window. An easy way to learn the syntax is to establish the property that you want in the Column Info window first, and then use Get Property to view the JSL. See ““列信息”窗口” in the Using JMP book for details about each property.
Data columns have numerous optional metadata attributes that can be set, queried, or cleared using the messages Get Property, Set Property, and Delete Property.
The name of the property in question is always the first argument for Set Property, and what is expected for subsequent arguments depends on which property you set:
•
|
Get Property and Delete Property always take a single argument, which is the name of the property.
|
•
|
Get Property returns the property’s settings. Delete Property completely removes the property from the column.
|
•
|
If you want to set several properties, you need to send several separate Set Property messages. You can stack several messages in a single JSL statement if you want.
To get a property’s value, send a Get Property message whose argument is the name of the property that you want:
One way to do this is to use expressions. In the following example, the Eval Expr() function evaluates and replaces any variable wrapped in the Expr() function with its value. The outer Eval() function evaluates the entire statement after the replacement has occurred.
lLimit = 55;
uLimit = 70;
tLimit = 62.5;
Eval(
:height << Set Property(
Show Limits( 0 )}
Common Properties for Data Table Columns shows examples for setting and getting popular column properties. See ““列信息”窗口” in Using JMP for more information about each property.
col<<Set Property( "Response Limits", {Goal("Match Target"), Lower(1,1), Middle(2,2), Upper(3,3)} );
Choices for Goal are Maximize, Match Target, Minimize, None. Other arguments take numeric value and desirability arguments.
|
||
Choices for role are Continuous, Discrete Numeric, Categorical, Blocking, Covariate, Mixture, Constant, Uncontrolled, Random Block, Signal, and Noise.
|
||
Provided for custom uses. Corresponds to Column Properties > Other in the Column Info window.
|