cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar
hogi
Level XII

Data Filter - Zoom Settings

When I open a data filter and use "zoom to Selection" to restrict the displayed ranged, I can generate a J'SL code which looks like the one below.

hogi_0-1675628316656.png

 

Unfortunately, when I run the JSL code, the Data Filter is opened without the range restriction (Jmp 17.0):

hogi_1-1675628338610.png

 

 

Is there anything that I can do to get the range restricted?

 

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt  << Data Filter(
	Location( {175, 175} ),
	Conditional,
	Mode( Include( 1 ) ),
	Add Filter(
		columns( :height ),
		Where( :height >= 65 ),
		Display( :height, Min( 60 ) )
	)
);

 

 

 

 

4 REPLIES 4
jthi
Super User

Re: Data Filter - Zoom Settings

You can use Zoom to Selection

Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");
df = dt << Data Filter(
	Location({175, 175}),
	Conditional,
	Mode(Include(1)),
	Add Filter(columns(:height), Where(:height >= 65))
);

fc = df << Get Filter Column(:height);
fc << Zoom to Selection;

Might be a good idea to also filter based on the high value to avoid possible issues

-Jarmo
hogi
Level XII

Re: Data Filter - Zoom Settings

You mean, repeat  what I did manually, but via JSL:
- set the lower limit of the filter to 60

- apply Zoom to Selection to enforce the Display(:height, Min(60))

- then change the lower limit of the filter to 65 to get the correct selection.

 

Hm, will work as a workaround. But why is the Display(:height, Min(60)) command ignored by the Data Filter?

 

 

jthi
Super User

Re: Data Filter - Zoom Settings

I would contact support about it.

 

There is also weird DFIntMinMaxBox but it has no documentation and is only for specific platforms (filter?). I tried to use it to change the filters "zoom", it does work but it also has bugs so it won't behave exactly the same (if you try to drag over the zoom range it will set the value to minimum even if you cannot see it).

-Jarmo
hogi
Level XII

Re: Data Filter - Zoom Settings

Ok, let's see:
Case TS-00033636