列列錶框上方的列過濾器有沒有辦法讓列過濾器顯示在列列錶框上方?現在我必須使用 Column Dialog 窗口來獲取它,這很煩人,因為它不像新窗口()那樣好用。
感謝您的任何建議!
史蒂夫
腳本回复:列列錶框上方的列過濾器感謝所有的例子!回复:列列錶框上方的列過濾器我一直在使用類似的方法@ErraticAttack展示了獲取“列列錶框”(篩選列選擇器)以輕鬆獲取可篩選列列表的方法。
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
nw = New Window("",
flc = Filter Col Selector(dt, nlines(10)),
((flc << Parent) << Xpath("//IfBox")) << set(1)
);
Filter col 選擇器也可用於創建“惰性”可過濾列表以限制從列中的選擇,方法是首先創建一個以列名作為可能選項的數據表
Names Default To Here(1);
dt_temp = Open("$SAMPLE_DATA/Big Class.jmp", invisible);
dt_filter = dt_temp << Split(
output table("filter table"),
Split By(:name),
Split(:name),
Remaining Columns(Drop All),
Sort by Column Property,
invisible
);
Close(dt_temp, no save);
nw = New Window("filterable list", << modal,
V List Box(
fcs = Filter Col Selector(dt_filter, nlines(10)),
((fcs << Parent) << Xpath("//IfBox")) << set(1),
H List Box(
Button Box("OK", sel = fcs << Get selected),
Button Box("Cancel")
)
);
);
Close(dt_filter, no save);
show(sel);回复:列列錶框上方的列過濾器這對 JMP14 不起作用(默認情況下,過濾器對 JMP14 是隱藏的)。您可以使用顯示樹手動切換過濾器:
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/PopAgeGroup.jmp" );
New Window( "Filter Col Selector Example",
fcs = Filter Col Selector( width( 250 ) )
);
fcs[If Box( 1 )] << Set( 1 )
回复:列列錶框上方的列過濾器你好@shampton82 - 上面顯示的框是一個 FilterColSelector:
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/PopAgeGroup.jmp" );
New Window( "Filter Col Selector Example",
Filter Col Selector( width( 250 ) )
);
如果列數多於可顯示的列數,篩選字段將僅在最初顯示。
回复:列列錶框上方的列過濾器感謝吉姆的快速回复,
關閉但不完全,尋找這個:

回复:列列錶框上方的列過濾器這是你在說什麼

此示例來自 Col List Box() 的腳本指南
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
New Window( "Col List Box Example",
Col List Box( all, width( 250 ), maxSelected( 1 ) ),
fontobj = lb = Col List Box()
);