cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
Choose Language Hide Translation Bar
Sburel
Level IV

dynamic concatenation of checkbox list output in the same window

Hello,

I trying to create a simple script where, as various items in a checkbox list are selected in a window, those items are concatenated and displayed dynamically in the same window below the list.

Eventually, I would have a series of checkbox lists whose results are concatenated into a string.

 

Any suggestion would be appreciated,

 

Best,

 

sebastien

 

Names Default To Here( 1 );
New Window( "Example",
cb = Check Box( {"One", "Two", "Three"}),
text box( "Selected: " || Concat Items( cb << Get Selected(), ", " ) )
);
1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: dynamic concatenation of checkbox list output in the same window

Here is the simple modification to you code to make it work

txnelson_0-1627250332735.png

Look to the Scripting Index to help understand the elements of the script

Names Default To Here( 1 );
New Window( "Example",
	cb = Check Box(
		{"One", "Two", "Three"},
		tb << set text( "Selected: " || Concat Items( cb << Get Selected(), ", " ) )
	),
	tb = Text Box( "" )
);

 

Jim

View solution in original post

2 REPLIES 2
txnelson
Super User

Re: dynamic concatenation of checkbox list output in the same window

Here is the simple modification to you code to make it work

txnelson_0-1627250332735.png

Look to the Scripting Index to help understand the elements of the script

Names Default To Here( 1 );
New Window( "Example",
	cb = Check Box(
		{"One", "Two", "Three"},
		tb << set text( "Selected: " || Concat Items( cb << Get Selected(), ", " ) )
	),
	tb = Text Box( "" )
);

 

Jim
Sburel
Level IV

Re: dynamic concatenation of checkbox list output in the same window

Thank you!