- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: how to pass string list to Group Scripts in jsl
Thank you so much.