cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • 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.
Choose Language Hide Translation Bar
UserID16644
Level V

How to display multiple combo box

Hi all, how can I create two combo box in a modal? Seems like it only shows the last combo box being displayed. Here is my sample code:

BTW, Im using JMP 15

nw = New Window( "HAMR RO BQST Data Preparation", << modal(),
	lineupbox(ncol(1), spacing(5),
		Text Box( "Enter Name:" ),
		teb3 = Text Edit Box( "", <<set width( 200 ) ),	
		
		Text Box( "Select Sex:" ),
		cbSex = Combo Box( {"Male", "Female"},
		selSex = cbSex << GetSelected());
		
		Text Box( "Select Course:" ), 
		cbCourse = Combo Box( {"Engineering", "Psychology", "Accounting", "Computer Science", "IT", "Mathematics"},
		selCourse = cbCourse << GetSelected());

	),
	Button Box( "OK", 
		doetx = doe << get text();
	),
);

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: How to display multiple combo box

Change out the ";" for a "," on line

selSex = cbSex << GetSelected()),

That will allow the JSL to continue to parse the remainder of the code

txnelson_0-1699242239568.png

 

Jim

View solution in original post

1 REPLY 1
txnelson
Super User

Re: How to display multiple combo box

Change out the ";" for a "," on line

selSex = cbSex << GetSelected()),

That will allow the JSL to continue to parse the remainder of the code

txnelson_0-1699242239568.png

 

Jim

Recommended Articles