JMP 16 to JMP 18- get Legend Server/Item questionI recently moved from JMP 16 to JMP 18 and the following line in my script is causing an error while plotting using the graph builder
server = gb_obj<< Get Legend Server; For Each({item}, server << Get Legend Items, item << Set Properties({Marker("Minus")}));where gb_obj is the graph builder object and error is
Send Expects Scriptable Object at row 6 in access or evaluation of 'List' , {/*###*/LegendModelItem( Label( "meas_para_name" ), Type( "Marker" ) )}where "meas_para_name" is the name of a measured parameter in the data table plotted.
What to change to get this to work on JMP18?
(let me know if above info is not enough)
Automation and ScriptingWindowsRe: JMP 16 to JMP 18- get Legend Server/Item questionworkaround: use get legend item() for each item.
issue with get legend items
[fixed in JMP19]
Re: JMP 16 to JMP 18- get Legend Server/Item questionUse Get legend Items in a first step. And use "i" as index for the second step:
server = gb << Get Legend Server;
Nitems = Nitems(( server << Get Legend Items)[1]);
for(i=1, i<= Nitems, i++,
Eval(Eval Expr(item = server << Get Legend Item(1, Expr(i))));
item << Set Label( "Item " || Char( i ) )
);
If you have multiple layers, you might need to change the first index as well.
Re: JMP 16 to JMP 18- get Legend Server/Item question@hogi Thanks. Below (with for each) does not work in JMP 18. What am I missing?
server = gb_expr_obj<< Get Legend Server; For Each({item}, server << Get Legend Item (), item << Set Properties({Marker("Minus")}));Re: JMP 16 to JMP 18- get Legend Server/Item question@hogi When is JMP 19 getting released?
Re: JMP 16 to JMP 18- get Legend Server/Item question2025-09