<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />嗨,
我想創建一個窗口,從不同的表中選擇參數。我為此使用日誌和腳本。
我能做的最好的就是為每張桌子打開一個新窗口。
choix1 =Column Dialog( current data table(dt_fil_step_1); selection_step_1 = colList( "Paramètres à représenter", maxcol( N Col(dt_fil_step_1)) ), current data table(dt_fil_step_2); selection_step_2 = colList( "Paramètres à représenter", maxcol( N Col(dt_fil_step_2) ) ), current data table(dt_fil_step_3); selection_step_3 = colList( "Paramètres à représenter", maxcol( N Col(dt_fil_step_3) ) ); );
實際上窗口應該如下所示:

然後ButtonBoxes需要定義他們的點擊動作,例如:
step_1_BB << Script(選擇列表<< Append(selection_step_1 << GetSelected));
首先,您不想使用列對話框()。 JMP不再強調這種方法。 下面是腳本的開頭,它將執行您想要的操作。 您需要填寫填充“參數選擇”列表等所需的代碼。但它會彈出3個數據表供您選擇。
名稱默認為此處 ( 1 ) ;
dt_fil_step_1 = 打開 ( “$ SAMPLE_DATA / big class.jmp” ) ;
dt_fil_step_2 = 打開 ( “$ SAMPLE_DATA / semiconductor capability.jmp” ) ;
dt_fil_step_3 = 打開 ( “$ SAMPLE_DATA / drug measurements.jmp” ) ;
選中的清單 = {} ;
choix1 = 新窗戶 ( “測試” ,
陣容箱 ( N Col ( 2 ) ,
陣容箱 ( N Col ( 2 ) ,
當前數據表 ( dt_fil_step_1 ) ;
selection_step_1 = Col List Box ( dt_fil_step_1 ,所有 ) ;,
step_1_BB = 按鈕框 ( “選擇數據表1” ) ,
當前數據表 ( dt_fil_step_2 ) ;
selection_step_2 = Col List Box ( dt_fil_step_2 ,所有 ) ;,
step_2_BB = 按鈕框 ( “選擇數據表2” ) ,
當前數據表 ( dt_fil_step_3 ) ;
selection_step_3 = Col List Box ( dt_fil_step_3 ,所有 ) ;,
step_3_BB = 按鈕框 ( “選擇數據表3” )
) ,
選中的清單 = 列錶框 ( 選中的清單 , nlines ( 22 ) )
)
) ;