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-14154%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EExtender%20Seleccione%20Donde%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-14154%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%26lt%3Bmeta%20http-equiv%3D%22Content-Type%22%20content%3D%22text%2Fhtml%3B%20charset%3DUTF-8%22%20%2F%26gt%3B%3CP%3E%C2%BFPodemos%20arreglar%20esto%20en%20la%20Gu%C3%ADa%20de%20Scripting%3F%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%2F%2F%20Gu%C3%ADa%20de%20scripting%20p%C3%A1gina%20336%3C%2FP%3E%3CP%3Edt%20%3D%20Abrir%20(%22%24%20SAMPLE_DATA%20%5C%20Big%20Class.jmp%22)%3B%3C%2FP%3E%3CP%3Edt%20%26lt%3B%26lt%3B%20Seleccione%20D%C3%B3nde%20(edad%20%26lt%3B15%20y%20sexo%20%3D%3D%20%22F%22)%3B%3C%2FP%3E%3CP%3E%2F%2Fo%3C%2FP%3E%3CP%3Edt%20%26lt%3B%26lt%3B%20Seleccione%20D%C3%B3nde%20(edad%20%3D%3D%2014)%3B%3C%2FP%3E%3CP%3Edt%20%26lt%3B%26lt%3B%20Extender%20Seleccionar%20d%C3%B3nde%20(sexo%20%3D%3D%20%22F%22)%3B%20%2F%2Fno%20hace%20nada%3C%2FP%3E%3CP%3E%2F%2F%20No%20en%20la%20gu%C3%ADa%2C%20pero%20debajo%20de%20las%20obras%3C%2FP%3E%3CP%3Eespera%20(10)%3B%3C%2FP%3E%3CP%3Edt%20%26lt%3B%26lt%3B%20Seleccione%20D%C3%B3nde%20(sexo%20%3D%3D%20%22F%22%2C%20Selecci%C3%B3n%20actual%20(%22extender%22))%3B%20%2F%2F%20ampl%C3%ADa%20la%20selecci%C3%B3n%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-14155%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20Extender%20Seleccionar%20Donde%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-14155%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ELo%20siguiente%20es%20de%20la%20p%C3%A1gina%20340%20en%20la%20Gu%C3%ADa%20de%20secuencias%20de%20comandos%20de%20JMP%2012.1%20y%20tambi%C3%A9n%20se%20incluye%20en%20la%20documentaci%C3%B3n%20actual%20en%20l%C3%ADnea%3A%3C%2FP%3E%3CPRE%20__jive_macro_name%3D%22quote%22%20class%3D%22jive_text_macro%20jive_macro_quote%22%3E%3CBR%20%2F%3E%3CP%3ETo%20select%20a%20row%20without%20deselecting%20a%20previously%20selected%20row%2C%20combine%20%26lt%3B%26lt%3B%20Select%20Where%20with%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%26lt%3B%26lt%3B%20Select%20Where%20and%20the%20current%20selection(%22extend%22)%20argument.%20This%20is%20an%20alternative%20to%3C%2FP%3E%3CBR%20%2F%3E%3CP%3Eusing%20an%20OR%20statement.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3Edt%20%26lt%3B%26lt%3B%20Select%20Where(%20age%20%3D%3D%2014%20)%3B%3C%2FP%3E%3CBR%20%2F%3E%3CP%3Edt%20%26lt%3B%26lt%3B%20Select%20Where(%20sex%20%3D%3D%20%22F%22%2C%20current%20selection(%22extend%22))%3B%3C%2FP%3E%3CBR%20%2F%3E%3C%2FPRE%3E%3CP%3E%3C%2FP%3E%3CP%3E%C2%A1Espero%20que%20ayude!%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EWendy%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
msharp
Super User (Alumni)

Extend Select Where

Can we get this fixed in the Scripting Guide?

//Scripting Guide page 336

dt = Open( "$SAMPLE_DATA\Big Class.jmp" );

dt << Select Where( age < 15 & sex == "F" );

//or

dt << Select Where( age == 14 );

dt << Extend Select Where( sex == "F" ); //does nothing

//Not in guide, but below works

wait(10);

dt << Select Where( sex == "F", Current Selection ("extend")); //extends selection

1 REPLY 1

Re: Extend Select Where

The following is from page 340 in the JMP 12.1 Scripting Guide and is also included in the current online documentation:


To select a row without deselecting a previously selected row, combine << Select Where with


<< Select Where and the current selection("extend") argument. This is an alternative to


using an OR statement.


dt << Select Where( age == 14 );


dt << Select Where( sex == "F", current selection("extend"));


Hope that helps!

Wendy

Wendy

Recommended Articles