将脚本添加到现有脚本组像往常一样,不确定我是怎么到这里来的,但我有一个脚本,如果嵌入的脚本标题中包含“History”一词,它会将嵌入的脚本分组到 JMP 表中。我有一个脚本“Split Table”,稍后我会嵌入它,我想将它添加到“History”脚本组中。有没有一种简单的方法可以做到这一点,而无需首先拆开该组?
lstScripts = Current Data Table() << Get Table Script Names;
History_scripts = {};
For( j = 1, j <= N Items( lstScripts ), j++,
If( Contains ( lstScripts[j] , "History" ),
Insert Into( History_scripts, lstScripts[j] )
)
);
Show(History_scripts);
Current Data Table() << Group Scripts( History_scripts ) << rename script group( "Tool History etc.", "History");
自动化和脚本回复:将脚本添加到现有脚本组看起来你需要使用以下方法获取历史组中脚本的名称
获取脚本组
然后使用以下方法取消脚本分组
取消脚本分组
然后添加您想要添加到历史记录组的脚本名称
如果历史组名称列表是 hisgp
插入(hisgp, (
然后使用更新后的列表创建历史记录组
群组脚本
回复:将脚本添加到现有脚本组嗯,我没有找到这样的功能。
但生成它很容易:
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt << group scripts(
"myGroup",
{"Graph Builder Smoother Line", "Graph Builder Line and Bar Charts",
"Graph Builder Line Chart", "Graph Builder Heat Map"}
);
insert Script = Function( {dt, groupName, scriptName},
//{default local},
myList = dt << get script group( groupName );
Insert Into( myList, scriptName );
dt << group scripts( groupName, mylist );
);
insert Script( dt, "myGroup", "Logistic" )
回复:将脚本添加到现有脚本组现在我找到了:
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt << group scripts(
"myGroup",
{"Graph Builder Smoother Line", "Graph Builder Line and Bar Charts",
"Graph Builder Line Chart", "Graph Builder Heat Map"}
);
dt << group scripts("myGroup", "Logistic")回复:将脚本添加到现有脚本组“我”
...其实就是他:

现在我记得......
我无意中发现了这个技巧,并用它来
https://marketplace.jmp.com/appdetails/Graph+Builder+Toolbar / SendToPowerpoint 将导出的图表脚本添加到
回复:将脚本添加到现有脚本组谢谢 Hogi。不知怎么的,我没能让它工作(可能是业余时间)。我正在使用这个,它可以工作。
lstScripts = Current Data Table() << Get Table Script Names;
History_scripts = {};
For( j = 1, j <= N Items( lstScripts ), j++,
If( Contains ( lstScripts[j] , "History" ),
Insert Into( History_scripts, lstScripts[j] )
)
);
For( j = 1, j <= N Items( lstScripts ), j++,
If( Contains( lstScripts[j], "Split Table" ),
Insert Into( History_scripts, lstScripts[j] )
)
);
Current Data Table() << Group Scripts( History_scripts );