Skip to main content
Nintex Community Menu Bar
Question

reorder table with javascript

  • July 10, 2024
  • 4 replies
  • 21 views

Forum|alt.badge.img+18

Is it possible to reorder a model or a table based on a field with javascript?

After adopting a bunch of rows into a model, I want to order by a date field.

4 replies

Forum|alt.badge.img+10

Matt did you ever come a solution for this?

I’d prefer to use a skuid-like solution before importing a table library.


Forum|alt.badge.img+18
  • Author
  • 2192 replies
  • July 10, 2024

No that I recall. Sorry.

In principal, you could store the javascript rows object in a variable, reorder them in javascript, remove all the rows from the model, and add the rows from the reordered object variable.


Forum|alt.badge.img+10

Actually, that’s brilliant! Would you use adoptRows to accomplish this?


Forum|alt.badge.img+18
  • Author
  • 2192 replies
  • July 10, 2024

yep, that sounds right to me.