有谁知道删除引用链接(虚拟连接)的 JSL 脚本是什么?
下面的链接描述了创建链接 ID 和参考链接的脚本。我想编写一个脚本来逆转该过程。
https://www.jmp.com/support/help/14-2/virtually-join-data-tables-2.shtml
谢谢!
@khusodo ,
链接 ID 是在辅助表中分配的列属性。
dt1 = Open( "$SAMPLE_DATA/Pizza Profiles.jmp" );
dt1:ID << Set Property( "Link ID", 1 );
// add Link ID and turn it on
链接引用是“引用”辅助表中信息的列属性。 dt1 abd Dt2 都必须有一个名为 ID 的列。
dt2 = Open( "$SAMPLE_DATA/Pizza Responses.jmp" );
dt2:Choice1 << Set Property( "Link Reference", Reference Table( "$SAMPLE_DATA/Pizza Profiles.jmp" ) );
dt2:Choice2 << Set Property( "Link Reference", Reference Table( "$SAMPLE_DATA/Pizza Profiles.jmp" ) );
dt2:Choice << Set Property( "Link Reference", Reference Table( "$SAMPLE_DATA/Pizza Profiles.jmp" ) );
// add Link Reference to the Choice1, Choice2, and Choice columns
当两个表都打开时,针对主表的交互式分析将显示主 (dt2) 和辅助 (dt1) 表中的列。
- 关闭辅助表,而不是取消链接,尤其是在以后可能使用链接时,可能用于不同的文件。
- 删除链接和/或引用
dt1:ID << Set Property("Link ID",0) ;
dt2:Choice1 << delete property("Link Reference");
dt2:Choice2 << delete property("Link Reference");
dt2:Choice << delete property("Link Reference");