cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
The Discovery Summit 2025 Call for Content is open! Submit an abstract today to present at our premier analytics conference.
Choose Language Hide Translation Bar
View Original Published Thread

JMP 16 to JMP 18- get Legend Server/Item question

Neo
Neo
Level VI

I 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)

When it's too good to be true, it's neither
5 REPLIES 5
hogi
Level XII


Re: JMP 16 to JMP 18- get Legend Server/Item question

workaround: use get legend item() for each item.
issue with get legend items 

[fixed in JMP19]

 

 

 

 

 

 

 

 

Neo
Neo
Level VI


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")}));
When it's too good to be true, it's neither
hogi
Level XII


Re: JMP 16 to JMP 18- get Legend Server/Item question

Use 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.

Neo
Neo
Level VI


Re: JMP 16 to JMP 18- get Legend Server/Item question

@hogi When is JMP 19 getting released?

When it's too good to be true, it's neither
hogi
Level XII


Re: JMP 16 to JMP 18- get Legend Server/Item question

2025-09