如何在 JMP 中透過腳本建立資料表時阻止資料表視窗彈出?大家好,
我有一個 JMP 腳本,可以將多個表合併到一個輸出表中(請參閱下面的程式碼片段)。
即使我試圖用以下方法將其隱藏:
<CODE class="whitespace-pre! language-jmp"><SPAN></SPAN>
Data Table("Combined_Output_Table") << Invisible(1);
the data table window still pops up briefly when it’s created (especially when using Concatenate or Join).
有沒有可靠的方法在腳本運行時完全阻止表格打開?
我嘗試過:
似乎沒有任何方法能完全阻止窗戶短暫打開。
範例程式碼-
//### Create combined output table
calcVersion = "Combined_Output_Table"; // Name of the final output table
nTables = N Items( tableNameList );
// Combine multiple batch tables into one
If(
nTables == 1,
Data Table( OpenTableNames[1] ) << Set Name( calcVersion ),
FirstTable = Remove From( tableNameList );
FirstTable << Concatenate(
tableNameList,
Output Table Name( calcVersion )
);
// Close intermediate tables
For( i = 1, i <= nTables, i++,
Close( Data Table( OpenTableNames[i] ), NoSave )
);
);
//### Attempt to hide the window
Data Table( calcVersion ) << Invisible( 1 );
自動化和腳本編寫資料融合與清理回覆:如何在 JMP 中透過腳本建立資料表時阻止資料表視窗的出現?
@zetaVagabond1 wrote:
我嘗試過:
建立過程中新增不可見項目 
open(filename, invisible)
更好的辦法是:使用私有設定-這將加快資料整理過程。
許多平台都允許您添加這些設定。
Data Table( "Big Class Families" ) << Subset( All rows, Selected columns only( 0 ) , invisible);
myDT << Concatenate(tableNameList, Invisible);
令人遺憾的是,其他平台沒有提供多文件導入等設定!
具有多文件匯入功能的私有表
請投票支持解決此問題:
導入多個檔案的私有選項
回覆:如何在 JMP 中透過腳本建立資料表時阻止資料表視窗的出現?而不是
// Combine multiple batch tables into one
If(
nTables == 1,
Data Table( OpenTableNames[1] ) << Set Name( calcVersion ),
FirstTable = Remove From( tableNameList );
FirstTable << Concatenate(
tableNameList,
Output Table Name( calcVersion )
);
// Close intermediate tables
For( i = 1, i <= nTables, i++,
Close( Data Table( OpenTableNames[i] ), NoSave )
);
);
你可以寫
myDT= new table(calcversion,invisible);
myDT << Concatenate(tableNameList, append to first table);
for each({dt},tableNameList, close(dt, noSave))
回覆:如何在 JMP 中透過腳本建立資料表時阻止資料表視窗的出現?感謝您的詳細解答。我並非經驗豐富的 JSL 腳本編寫者,目前正在嘗試修改一個遺留腳本。我發現 JSL 腳本編寫非常令人困惑和畏懼 xD。我比較擅長 Python 程式設計。
雖然沒什麼背景訊息,但我還是摸索著前進了,呼!