cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar
GgGgGg2024
Level I

How do I write a function to display a column as a drop down list? The user should be able to select from this list

 
1 REPLY 1
jthi
Super User

Re: How do I write a function to display a column as a drop down list? The user should be able to select from this list

If this is related to How do I get a list from an SQL query and let the user select the option from the list? you could have most likely kept discussion in that single topic. You have to options for drop-down, Combo box or button box

Names Default To Here(1);

selections = {"One", "Two", "Three"};

nw = New Window("Example",
	H List Box(
		Panel Box("Combo Box",
			cb = Combo Box(selections)
		),
		Panel Box("Button Box",
			btn = Button Box("Select", << Set Menu Items(selections))
		)
	)
);
jthi_0-1708962808941.png

Combo box is usually easier to use (Scripting Guide - Combo Box )

-Jarmo