cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar
JMPFan1
Level I

copy value to multiple dropdown boxes

Hi,

i am performing this action too many times to not know how to copy selection from first row to the rest, can you advice?

JMPFan1_0-1647763809253.png

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: copy value to multiple dropdown boxes

Ah... you want to have same selection in all of the combo boxes as in first one? No idea if you can do it without scripting (if this is a JMP platform it might have button to change values, if custom script someone would have to script it somehow).

-Jarmo

View solution in original post

3 REPLIES 3
jthi
Super User

Re: copy value to multiple dropdown boxes

I guess you have Table Box() with Col Box filled with Combo Boxes. Below are some ideas you could try:

Names Default To Here(1);

nw = New Window("",
	tb = Table Box(
		cb = Col Box("select",
			Combo Box({"a", "b", "c"}),
			Combo Box({"a", "b", "c"}),
			Combo Box({"a", "b", "c"}),
			Combo Box({"a", "b", "c"}),
			Combo Box({"a", "b", "c"})
		)
	)
);

cb << Get; //won't work as it returns list with empty values
cb << Get Text; // could use this and parse result
cb[1] << get selected; // this should work, so you could loop over elements or get references to a list
(cb << XPath("//ComboBox")) << get selected; // my preferred method use XPath to get references and then << get selected for values
-Jarmo
JMPFan1
Level I

Re: copy value to multiple dropdown boxes

Hi, thanks, any solution for non-developers?  

(not working with code unless i will have to )

jthi
Super User

Re: copy value to multiple dropdown boxes

Ah... you want to have same selection in all of the combo boxes as in first one? No idea if you can do it without scripting (if this is a JMP platform it might have button to change values, if custom script someone would have to script it somehow).

-Jarmo