Skip to main content
Nintex Community Menu Bar
Question

Is there a JS option to select all rows in a table?

  • July 9, 2024
  • 3 replies
  • 4 views

Forum|alt.badge.img+8

I know this can be done with the ‘Mass Actions’ option, but I’d prefer to do it with a script if possible…

3 replies

Forum|alt.badge.img+13

If you only have one Table on your page, this will select all currently-visible items:

skuid.$(‘.nx-skootable-data > thead > tr > th > input[type=“checkbox”]’).click();

If you want to select rows in a particular Table, then you’ll need to give that Table a Unique Id, e.g. “AccountsTable” (through the Table’s Advanced properties) and then use something like this:

skuid.$(‘#ProductsTable .nx-skootable-data > thead > tr > th > input[type=“checkbox”]’).click();



Forum|alt.badge.img+8
  • Author
  • July 9, 2024

Much obliged Zach!


Forum|alt.badge.img+10
  • July 9, 2024

Zach I tried the code to select the rows in a particular table and nothing happend.

I have an in-line snippet with "skuid.$(‘#BundleLineTable .nx-skootable-data > thead > tr > th > input[type=“checkbox”]’).click();

I have given my table the same unique id: BundleLineTable

Can you see where I am messing up?