For the latest version of JMP Help, visit JMP.com/help.


Publication date: 05/05/2023

Optional Scripts in New Window

One benefit of New Window() is the ability to add optional scripts to display boxes. In the deprecated Dialog(), the following combo box could not include an optional script. If you wanted an action associated with any of the display box controls, you had to place a script as the control’s last argument. For example:

win = New Window( "Combo Box",
<<Modal,
<<ReturnResult,
	comboObj = Combo Box(
		{"True", "False"},
		<< Set( 1 ),
		Print( comboObj << Get )
	)
);

When the user selects a different value, the selected item number (1 or 2 in this case, because there are two items in the combo box) is printed to the log.

Want more information? Have questions? Get answers in the JMP User Community (community.jmp.com).