<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 ) )
)
) ;