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

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
Newbie_1
Level II

Execute Data Filter, then close it.

Well, this has probably been answered a million times, but I cant find what I'm looking for exactly, so I thought I would ask...

Here is a JMP Script for a Data Table I am using.

 

Current Data Table() << Data Filter(
	Location({751, 160}),
	Show Histograms and Bars(0),
	Mode(Show(1), Include(1)),
	Add Filter(columns(:GUN), Where(:GUN == "D"))
);
Edit (jthi): added jsl formatting
 
After it executes, what command do I use to close the filter window? It has served its purpose. Now I want to close it automatically, without having to use mouse clicks.  Any help will be appreciated.
 
1 REPLY 1
txnelson
Super User

Re: Execute Data Filter, then close it.

There is not a need to use the Data Filter to do the exclusion and selection.  Here is a simple piece of JSL that will do the same thing as what you are doing using the Data Filter

dt=current data table();
dt << select where(:GUN != "D");
dt << exclude(1);
dt << invert row selection;

Also, to make your JSL examples you display in your discussion, please use the JSL icon at the top of Discussion Preview to enter your JSL

Jim

Recommended Articles