嗨 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>