cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Learn how to build custom Python data connectors and further customize JMP’s Data Connector Framework with the Python Data Connector Demo, available now in the JMP Marketplace!
  • See how to create experiments to support product design and ID useful product features. Register for June 12 webinar, 2pm US Eastern Time.

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