cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • 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
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