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

How to deselect the columns that are assigned to Col List Box using Remove Selection Command

I have assigned a column to X Col Box(Col List Box) and on clicking the Remove Button I need to deselect the column that I assigned to it.

On X = Function({},
	X Col Box << Append(Cols List << Get Selected)
);

On Remove = Function({},
	X Col Box << Remove selected;
);
1 REPLY 1
jthi
Super User

Re: How to deselect the columns that are assigned to Col List Box using Remove Selection Command

If you want to deselect column, you should use << Set Selected or << Clear Selection (<< Remove Selected will remove the item, not deselect).

Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
New Window("Col List Box Example",
	lb = Col List Box(all, width(250), maxSelected(1)),
);
wait(1);
lb << Set Selected(2);
wait(1);
lb << Remove Selected();

Scripting Index does have examples how these can be used and there is documentation on JMP Help's Scripting Guide

-Jarmo