cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

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

Reset selection button on global filter

hey everyone, I was wondering if anyone knew a way to use JSL to recreate the action of pressing this button

shampton82_0-1738341880297.png

I looked in the scripting index and didn't see anything that appears to related to this function.

 

Thanks for any guidance!

 

Steve

2 REPLIES 2
jthi
Super User

Re: Reset selection button on global filter

There might be better options, but you can look for the button and then click it with a script

Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Cities.jmp");
nw = New Window("",df = dt << Data Filter(
	Location({379, 384}),
	Mode(Include(1)),
	Add Filter(
		columns(:Region, :POP),
		Where(:Region == "MW"),
		Display(:Region, N Items(6))
	)
));

dt << Select Rows([1]);

btn = (nw << XPath("//ButtonBox[@title = 'Reset selection']"));
btn << click(1);
-Jarmo
hogi
Level XIII

Re: Reset selection button on global filter

Any update of the data filter will give back the control.
you could trigger an update which doesn't change the selection, like

df <<Inverse(0)

[if it was inverse(1) before, use Inverse(1)]

Recommended Articles