This version of the Help is no longer updated. See JMP.com/help for the latest version.

.
Publication date: 07/30/2020

Optional Scripts in New Window

One of the benefits of using 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).