cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Learn how to build custom Python data connectors and further customize JMP’s Data Connector Framework with the Python Data Connector Demo, available now in the JMP Marketplace!
  • See how to move from signal modeling to system modeling at the first JMP Aerospace Analytics webinar. Register. June 18, 1 p.m. US Eastern Time.

Discussions

Solve problems, and share tips and tricks with other JMP users.
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

Recommended Articles