cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • Use World Cup data to build models, explore spatial relationships, and create informative visualizations in JMP. Register. July 17, 2 pm US Eastern Time.
  • Your voice matters! Tell us how you prefer to receive JMP updates, so we can tailor our communication to your needs. Take short survey.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
Hams
Level I

How to use List box to access new window

Hello,

 

I have this example code where the user selects an option from the radio box which then brings them to another window. I am able to get this to work for the radio and combo box, but ideally, I would like it to be a list box. However, the list box doesn't do anything when, selecting "one" and pressing "ok". Is there an extra piece of code I need to include to make a list box functional?

 

Appreciate the help!

 

win = New Window( "test",
	<<Modal,
	Text Box(""),
	Panel Box( "test", rbTest = radio Box( {"one", "two", "three", "four"} ) ),
	Spacer Box( size( 20, 10 ) ),
	H List Box(
		Button Box( "OK",
			pTest = rbTest << get selected;
			flagExecute = 0;
		),
		Button Box( "Cancel", flagExecute = 1 ), 
		
	),

);

If(pTest == "one",

win = New Window( "check",
	<<Modal,
	Panel Box( "check", rbProd = Radio Box( {"check"} ), ),
	Spacer Box( size( 20, 10 ) ),
)
);

 

1 REPLY 1
jthi
Super User

Re: How to use List box to access new window

Check what goes wrong when you are using list box by printing the pTest value

View more...
<< get selected will return list for List Box so you will have to handle that
-Jarmo

Recommended Articles