cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Submit your abstract to the call for content for Discovery Summit Americas by April 23. Selected abstracts will be presented at Discovery Summit, Oct. 21- 24.
Discovery is online this week, April 16 and 18. Join us for these exciting interactive sessions.
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.