有誰知道用於刪除(虛擬連接的)參考連結的 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");