キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
  • Image to Table JMP extension imports single or batch images as data tables. Useful to extract curves from pictures or convert image data to curve data to use in analyses like Functional Data Explorer. Download and install the extension.

Discussions

Solve problems, and share tips and tricks with other JMP users.
言語を選択 翻訳バーを非表示

JSL :: Event handling or Data binding to list boxes

Hello JMP Community,

I am in the middle of designing a GUI which allows to select an input table/ columns and an output table/ columns.  I am strunggeling with on how JSL handles mous clicks:  I want to select a table using a combo box, with a Col List Box updating following the mouse click on the combo box (how does the data binding of the Col list Box occur?).  Please have a look at the attached image for details.

jmp_jsl_q.png

 

Any help apprechiated!

 

Thanks and best,

Thorsten

 

1 件の受理された解決策

受理された解決策
txnelson
Super User

Re: JSL :: Event handling or Data binding to list boxes

Because of the specifics on the Col List Box(), what I find the best, and maybe the only way to handle the replacement of the data table associated with the object, is to delete the object and to replace it.

Names Default To Here( 1 );
QorvoPE_Select_Table = Function( {},
	table_list = {};
	For( t = 1, t <= N Table(), t++,
		Insert Into( table_list, Data Table( t ) << get name )
	);
	QorvoPE_Select_Table_dlg = New Window( "Select Data Table For Limit Calculation. ",
		<<modal,
		<<return result,
		Panel Box( "Select Table and columns",
			select_table = Combo Box(
				table_list,
				table = select_table << get selected();
				data col clb# << delete;
				MYHLB << append(
					data col clb# = Col List Box( Data Table( select_table << get selected ), all )
				);
			),
			MYHLB = H List Box(
				data col clb# = Col List Box( Data Table( select_table << get selected ), all ), 

			)
		)
	);
);

QorvoPE_Select_Table;
Jim

元の投稿で解決策を見る

2件の返信2
txnelson
Super User

Re: JSL :: Event handling or Data binding to list boxes

Because of the specifics on the Col List Box(), what I find the best, and maybe the only way to handle the replacement of the data table associated with the object, is to delete the object and to replace it.

Names Default To Here( 1 );
QorvoPE_Select_Table = Function( {},
	table_list = {};
	For( t = 1, t <= N Table(), t++,
		Insert Into( table_list, Data Table( t ) << get name )
	);
	QorvoPE_Select_Table_dlg = New Window( "Select Data Table For Limit Calculation. ",
		<<modal,
		<<return result,
		Panel Box( "Select Table and columns",
			select_table = Combo Box(
				table_list,
				table = select_table << get selected();
				data col clb# << delete;
				MYHLB << append(
					data col clb# = Col List Box( Data Table( select_table << get selected ), all )
				);
			),
			MYHLB = H List Box(
				data col clb# = Col List Box( Data Table( select_table << get selected ), all ), 

			)
		)
	);
);

QorvoPE_Select_Table;
Jim

Re: JSL :: Event handling or Data binding to list boxes

Thank you very much!

That helped a lot.

 

Best wishs,

--Thorsten

おすすめの記事