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%3EErweitern%20W%C3%A4hlen%20Sie%20Wo%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%3EK%C3%B6nnen%20wir%20das%20im%20Scripting%20Guide%20beheben%3F%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%2F%2FScripting%20Guide%20Seite%20336%3C%2FP%3E%3CP%3Edt%20%3D%20Open(%20%22%24SAMPLE_DATA%5CBig%20Class.jmp%22%20)%3B%3C%2FP%3E%3CP%3Edt%20%26lt%3B%26lt%3B%20Select%20Where(%20Alter%20%26lt%3B%2015%20%26amp%3B%20Geschlecht%20%3D%3D%20%22F%22%20)%3B%3C%2FP%3E%3CP%3E%2F%2Foder%3C%2FP%3E%3CP%3Edt%20%26lt%3B%26lt%3B%20Wo%20ausw%C3%A4hlen%20(Alter%20%3D%3D%2014)%3B%3C%2FP%3E%3CP%3Edt%20%26lt%3B%26lt%3B%20Extend%20Select%20Where(%20sex%20%3D%3D%20%22F%22%20)%3B%20%2F%2Ftut%20nichts%3C%2FP%3E%3CP%3E%2F%2FNicht%20in%20der%20Anleitung%2C%20aber%20unten%20funktioniert%3C%2FP%3E%3CP%3Ewarten%20(10)%3B%3C%2FP%3E%3CP%3Edt%20%26lt%3B%26lt%3B%20Select%20Where(%20sex%20%3D%3D%20%22F%22%2C%20Current%20Selection%20(%22extend%22))%3B%20%2F%2FAuswahl%20erweitern%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-14155%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Erweitern%20W%C3%A4hlen%20Sie%20Wo%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-14155%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EFolgendes%20stammt%20von%20Seite%20340%20im%20JMP%2012.1%20Scripting%20Guide%20und%20ist%20auch%20in%20der%20aktuellen%20Online-Dokumentation%20enthalten%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%3EHoffentlich%20hilft%20das!%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