如何在 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 编程。
虽然没什么背景信息,但我还是摸索着前进了,呼!