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
Dennisbur
Level IV

How to delete hidden and excluded rows by JSL

Hello

I have a table, and some of the rows are hidden and excluded

I would like to delete them by JSL script

I tried this script, but nothing happened,

 

dt << Select Where (:Excluded == 1 | :Hidden == 1);

dt << Delete Rows ( );

 

Can you provide me a solution, please?

 

Dennisbur_0-1683804751034.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: How to delete hidden and excluded rows by JSL

Excluded and Hidden aren't columns  so you cannot refer to them with :Hidden and :Excluded. You can use functions though

Names Default To Here(1);

dt = Current Data Table();
dt << Select Where(Hidden() | Excluded()) << Delete Rows;

Edit:

One thing to note here is that this is checking for either hidden OR excluded not for both. If you want to check for both, you should use and operator (&).

dt << Select Where(Hidden() & Excluded()) << Delete Rows;
-Jarmo

View solution in original post

1 REPLY 1
jthi
Super User

Re: How to delete hidden and excluded rows by JSL

Excluded and Hidden aren't columns  so you cannot refer to them with :Hidden and :Excluded. You can use functions though

Names Default To Here(1);

dt = Current Data Table();
dt << Select Where(Hidden() | Excluded()) << Delete Rows;

Edit:

One thing to note here is that this is checking for either hidden OR excluded not for both. If you want to check for both, you should use and operator (&).

dt << Select Where(Hidden() & Excluded()) << Delete Rows;
-Jarmo

Recommended Articles