- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
JMP 16 to JMP 18- get Legend Server/Item question
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: JMP 16 to JMP 18- get Legend Server/Item question
Created:
Mar 13, 2025 05:08 PM
| Last Modified: Mar 13, 2025 2:09 PM
(137 views)
| Posted in reply to message from Neo 03-13-2025
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: JMP 16 to JMP 18- get Legend Server/Item question
2025-09