如何使用 JSL 将数据表的行(无标题)放入日记帐中在脚本分析结束时,我想将数据表放入日志中。由于它是从 excel 导入的模板文件,因此列名毫无意义,因此我不想在日志中看到这些列名。有没有办法只将行和列内容(而不将列名)转储到日志中?
内容组织大规模定制回复:如何使用 JSL 仅将数据表的行(无标题)放入日志中这段代码就可以做到,但是有没有更优雅的解决方案呢? 它使标题仅在日志的最后一张表上消失。
current data table() << journal;
current data table() << journal;
current data table() << journal;
TableNumber = n items(Current Journal() <<XPATH></XPATH>
回复:如何使用 JSL 仅将数据表的行(无标题)放入日志中dt = Open( "$sample_data/big class.jmp" );
table = dt << GetAsReport;
(table << XPath( "//TableBox/*" )) << SetHeading( "" );
table << Journal;
扩展您的想法:在记录树之前使用 GetAsReport 对树进行操作。 然后将 SetHeading 广播给 XPath 返回的所有表格框子项。 表是一个显示框树,可以在 NewWindow(...) 中使用或记录。
Add a table to a journal without the column headers.Add a table to a journal without the column headers.Add a table to a journal without the column headers.在没有列标题的日志中添加表格。