cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • 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
cremebrulee
Level I

how to pass string list to Group Scripts in jsl

Hello all,

I've been trying for a couple of days to figure out if there's a way to pass a list of string variable to Group Scripts with the group name. Whenever I do that I got the log error message of "Group command needs to specify a list of scripts to be grouped" with the code below.

ChartList={"Script_1","Script_2","Script_3"};
DataTable_result << Group Scripts("AllCharts",ChartList);

 

If I change my code to below, the code run fine.

DataTable_result << Group Scripts("AllCharts",{"Script_1","Script_2","Script_3"});

 

I intend to make my code reusable by user define the script names that need to be grouped.I have tried a couple other things, such as using the eval(), expr(), but they don't work. Anyone has any suggestions, that would be great. Thanks in advanced.

Cremebrulee

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: how to pass string list to Group Scripts in jsl

I have validated your findings.  However, the script below will allow for the grouping to work.

Eval(
	Substitute(
			Expr(
				dt << group scripts( "AllCharts", __chartlist__ )
			),
		Expr( __chartlist__ ), chartlist
	)
);

I suggest that you submit the issue to JMP support as a bug.

Jim

View solution in original post

2 REPLIES 2
txnelson
Super User

Re: how to pass string list to Group Scripts in jsl

I have validated your findings.  However, the script below will allow for the grouping to work.

Eval(
	Substitute(
			Expr(
				dt << group scripts( "AllCharts", __chartlist__ )
			),
		Expr( __chartlist__ ), chartlist
	)
);

I suggest that you submit the issue to JMP support as a bug.

Jim
cremebrulee
Level I

Re: how to pass string list to Group Scripts in jsl

Thank you so much.

Recommended Articles