cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Instantly extract effect sizes, F-ratios, and FDR-adjusted p-values from your models with the Calculate Effects Sizes extension, available now in the JMP Marketplace!
  • 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!
  • See how to use the JMP Marketplace – Free tools to expand JMP capabilities. Register. July 10, 2 pm US Eastern Time.

Discussions

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

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

Recommended Articles