cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

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