腳本用於自動將 JMP 項目中的所有資料表和報表儲存到內容中我目前有一個靜態腳本,可以按名稱將特定的報表和表格儲存到項目內容中。我想將其通用化,使其適用於任何項目,因此名稱需要動態生成並透過保存函數傳遞。我已經嘗試了一些方法,但還沒有成功——非常感謝您的幫助。
這是目前適用於固定表名的腳本。它在與所有表和報表位於同一專案中的工作流程中運作。對於報表,我希望嵌入值始終設定為 0:
proj = Current Data Table() << Get Project();
proj << Run Script(
Data Table("plate_data_long") << Save As("$PROJECT/plate_data_long.jmp");
Data Table("plate_data_wide") << Save As("$PROJECT/plate_data_wide.jmp");
Data Table("Summarized by PC Plate_well and Process") << Save As("$PROJECT/Summarized by PC Plate_well and Process.jmp");
Window ("Assay Plate Value Heatmap") << Save Window Report( "$PROJECT/Assay Plate Value Heatmap.jrp", embed data( 0 ) );
Window ("Controls and Parent QC") << Save Window Report( "$PROJECT/Controls and Parent QC.jrp", embed data( 0 ) );
Window ("Assay Plate Value Heatmap") << Save Window Report( "$PROJECT/Assay Plate Value Heatmap.jrp", embed data( 0 ) )
;
);
自動化和腳本編寫回覆:用於自動將 JMP 項目中的所有資料表和報表儲存到內容的腳本您可以使用「取得資料表清單」功能取得資料表名稱清單。
tablenames = Get Data Table List() << get name;
使用「取得視窗清單」功能報告窗口
reportwindows = Get Window List(Type("Reports"));
然後你可以使用 For Each 迴圈來遍歷它們。
請查看腳本索引中的這兩個腳本,因為它們支援您可能需要使用的 Project 參數。
編輯:已修復命令或報告窗口
回覆:用於自動將 JMP 項目中的所有資料表和報表儲存到內容的腳本謝謝 Jarmo——你知道為什麼第二個函數沒有回我專案中需要的報表嗎?第一個函數對資料表的處理是正常的。
專案視窗快照:

日誌顯示以下操作無法返回報告。
reportwindows = Get Window List(Type("Reports"));

新增第二個報告後發現,顯示框/標題框無法區分多個報告:

回覆:用於自動將 JMP 項目中的所有資料表和報表儲存到內容的腳本這些是報表視窗。
回覆:用於自動將 JMP 項目中的所有資料表和報表儲存到內容的腳本為了更清楚地說明,它確實區分了它們。您可以發送 < <>