嗨 JMP 社区,
我想知道是否可以编写包含选定表格和/或图形的日志的生成脚本,包括每个表格/图形的文本编辑框。
我遇到了一个插件,它正在做我想做的一部分: https://community.jmp.com/t5/JMP-Add-Ins/Run-All-Table-Scripts/ta-p/42863
我只对平铺报告选项感兴趣,但想为所有选定的脚本添加一个文本编辑框,因为我想为它们添加评论。 我能够在期刊的开头和结尾添加一个文本编辑框,但我似乎无法弄清楚(如果以及)如何为每个脚本添加它们。 所选脚本的数量将根据期刊所需的图表数量而变化。
出于我的需要,我使用了我可以使用的 Run All Table Scripts Add-in 的一部分并尝试对其进行更改。 到目前为止没有成功。 有没有人建议如何将文本编辑框添加到日记中的所有脚本?
//This script is part of the Run All Table Scripts Add-in written by nickholmes13: https://community.jmp.com/t5/JMP-Add-Ins/Run-All-Table-Scripts/ta-p/42863.
Names Default To Here( 1 );
dt = Current Data Table();
appName = "Run All Table Scripts";
If (IsEmpty(dt),
Try(dt=Open(), Show("No data table is open so the Data Table Script Runner tool could not execute."));
);
If(IsEmpty(dt),
Stop();
);
Wait(.5);
dtTitle = dt << Get Window Title();//Get title of data table
allScripts = dt <<GET table="" script="" names="">"||dtTitle||". Be aware that all table scripts will be run, even if they do not create reports. Also note that applications created in table scripts will always appear in a separate window. \!n",
<< Markup),
Panel Box ("Which table scripts would you like to run?",
V List Box(
scriptsTR = Check Box(allScripts, << Set All(1)),
),
H List Box(
Button Box("Check All", scriptsTR << Set All(1)),
Button Box ("Check None", scriptsTR << Set All(0))
),
Spacer Box(Size(0,10)),
Text Box("Report View"),
rType = Radio Box({"Detailed", "Summary"})
),
H List Box(
Button Box ("Cancel", popup << Close Window()),
Spacer Box(),
Button Box ("Run", reportView = rType << Get();
scriptsTR = scriptsTR << Get Selected();
onRun(reportView, scriptsTR);
popup << Close Window())
)
)
)
);
popup<<SET auto="" stretching=""></SET></GET>我希望它被允许使用和更改上面链接中提供的加载项(它没有被锁定)。 如果没有,我将删除此帖子。 运行所有表脚本的学分:nickholmes13。
谢谢你。
一种选择是在 onRun 函数的 for 循环中编辑 else 语句。 查看 else 语句是如何构建/修改的:
If(i == 1,
window = New Window(dtTitle || " Reports",
<<JOURNAL></JOURNAL>