將列表複製到“App 開發器”中的列錶框大家好,
我正在 Application Builder 中構建一個插件,它使用列錶框的輸入作為查詢。 但是,對於大量查詢,這很複雜。 我希望能夠將列表從表中的行複製到 Application Builder 中的列錶框,我該怎麼做? 提前致謝。
回复:將列表複製到 Application Builder 中的列錶框您還可以將數據從表動態加載到應用程序構建器列錶框中。這是一個簡單的例子,我有兩個列錶框,品牌磅和姓名_lb .我正在添加品牌和名稱信息糖果棒數據集。
這是佈局:

這是腳本部分:
// This script is executed when a new module instance is
// created. The pre-defined object "thisModuleInstance" refers
// to the instance object, but other objects such as boxes and
// scripts have not yet been created. Variables declared here are
// scoped to the ModuleInstance namespace.
// This special function will receive parameters passed to CreateInstance()
OnModuleLoad({},
);
thisModuleInstance << Create Objects;
// After this point your module instance objects have been created
// and can be referred to by name (for example, "Button1").
dt = open("$sample_data\Candy Bars.jmp");
brand_list = dt:brand << get values;
name_list = dt:name << get values;
brand_lb << set items(brand_list);
name_lb << set items(name_list);
close(dt, nosave);
這是它的樣子:

回复:將列表複製到 Application Builder 中的列錶框你好,我們又見面了,
如果需要,只需添加一些功能,您可以添加一個按鈕來複製 List1 中的所有項目以供以後使用(例如用作查詢中的過濾器):
Button3Press=Function({this},
// This function is called when the button is pressed
List1items=List1<<GET items=""></GET>
或者,如果您希望允許用戶選擇要在查詢中使用的列表中的項目:
Button4Press=Function({this},
// This function is called when the button is pressed
List1selected=List1<<GET selected=""></GET>
如果有人將他們在給定日期可能需要的所有標籤複製到列表中,然後在運行各種查詢時從中進行選擇,這可能會很有用。
回复:將列表複製到 Application Builder 中的列錶框你好,
以下示例說明瞭如何為此目的使用 JMP App 開發器。還附上了一張表格,其中第一列包含標籤。只需選擇標籤並將其複製到剪貼板,然後使用應用程序中的按鈕將它們粘貼到列錶框中。查看應用程序中的腳本,了解按鈕的工作原理。這有幫助嗎?