cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-672653%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EC%C3%B3mo%20anular%20la%20selecci%C3%B3n%20de%20las%20columnas%20asignadas%20al%20cuadro%20de%20lista%20Col%20usando%20el%20comando%20Eliminar%20selecci%C3%B3n%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-672653%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EHe%20asignado%20una%20columna%20al%20cuadro%20X%20Col%20(cuadro%20de%20lista%20de%20columnas)%20y%20al%20hacer%20clic%20en%20el%20bot%C3%B3n%20Eliminar%20necesito%20anular%20la%20selecci%C3%B3n%20de%20la%20columna%20que%20le%20asign%C3%A9.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EEn%20X%20%3D%20Funci%C3%B3n(%7B%7D%2C%3CBR%20%2F%3E%20X%20Col%20Box%20%26lt%3B%26lt%3B%20Agregar%20(Lista%20de%20columnas%20%26lt%3B%26lt%3B%20Obtener%20seleccionado)%3B%3CBR%20%2F%3E%20)%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EEn%20Eliminar%20%3D%20Funci%C3%B3n(%7B%7D%2C%3CBR%20%2F%3E%20X%20Col%20Box%20%26lt%3B%26lt%3B%20Eliminar%20seleccionado%3B%3C%2FP%3E%3CP%3E)%3B%3CBR%20%2F%3E%20)%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-672653%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CLINGO-LABEL%3EAutomatizaci%C3%B3n%20y%20secuencias%20de%20comandos%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-672684%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20C%C3%B3mo%20anular%20la%20selecci%C3%B3n%20de%20las%20columnas%20asignadas%20al%20cuadro%20de%20lista%20de%20columnas%20usando%20el%20comando%20Eliminar%20selecci%C3%B3n%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-672684%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ESi%20desea%20anular%20la%20selecci%C3%B3n%20de%20la%20columna%2C%20debe%20utilizar%20%26lt%3B%26lt%3B%20Establecer%20seleccionado%20o%20%26lt%3B%26lt%3B%20Borrar%20selecci%C3%B3n%20(%26lt%3B%26lt%3B%20Eliminar%20seleccionado%20eliminar%C3%A1%20el%20elemento%2C%20no%20anular%C3%A1%20la%20selecci%C3%B3n).%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20To%20Here(1)%3B%0Adt%20%3D%20Open(%22%24SAMPLE_DATA%2FBig%20Class.jmp%22)%3B%0ANew%20Window(%22Col%20List%20Box%20Example%22%2C%0A%20lb%20%3D%20Col%20List%20Box(all%2C%20width(250)%2C%20maxSelected(1))%2C%0A)%3B%0Await(1)%3B%0Alb%20%26lt%3B%26lt%3B%20Set%20Selected(2)%3B%0Await(1)%3B%0Alb%20%26lt%3B%26lt%3B%20Remove%20Selected()%3B%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EScripting%20Index%20tiene%20ejemplos%20de%20c%C3%B3mo%20se%20pueden%20utilizar%20y%20hay%20documentaci%C3%B3n%20sobre%3CA%20href%3D%22https%3A%2F%2Fwww.jmp.com%2Fsupport%2Fhelp%2Fen%2F17.0%2F%23page%2Fjmp%2Fconstruct-display-boxes-for-new-windows.shtml%23ww496888%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%20Gu%C3%ADa%20de%20secuencias%20de%20comandos%20de%20la%20ayuda%20de%20JMP%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
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