cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Image to Table JMP extension imports single or batch images as data tables. Useful to extract curves from pictures or convert image data to curve data to use in analyses like Functional Data Explorer. Download and install the extension.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
EOwl
Level III

Passing a variable to Map Role( Shape Name Use(...))

I'm playing around with applying come custom map shapes, I've got them to work in the static case:

 

dt_Wafer:Die << Set Property("Map Role", Map Role(Shape Name Use("N:/JMPMaps/X1234-Name.jmp","Name")));

 

But trying dynamically is messing up the file name (dt_Info:Product Name[1] is "X1234")

 

maps = "N:/JMPMaps/";
ProductName = dt_Info:Product Name[1];

dt_Wafer:Die << Set Property("Map Role", Map Role(Shape Name Use( maps || ProductName || "-Name.jmp", "Name" )));

JMP here thinks the file is  N:/JMPMaps/Concat 
Is there a combination of Eval/Eval Expr/Parse/Eval Insert I need to use?

 

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: Passing a variable to Map Role( Shape Name Use(...))

Most likely Eval + Eval Expr could work

Eval(EvalExpr(dt_Wafer:Die << Set Property("Map Role", Map Role(Shape Name Use(Expr(maps || ProductName || "-Name.jmp"), "Name" )))));
-Jarmo

View solution in original post

1 REPLY 1
jthi
Super User

Re: Passing a variable to Map Role( Shape Name Use(...))

Most likely Eval + Eval Expr could work

Eval(EvalExpr(dt_Wafer:Die << Set Property("Map Role", Map Role(Shape Name Use(Expr(maps || ProductName || "-Name.jmp"), "Name" )))));
-Jarmo

Recommended Articles