Skip to main content
Nintex Community Menu Bar
Question

Updaterows() method on the model, adds the new row to the top instead of bottom

  • July 10, 2024
  • 2 replies
  • 24 views

Forum|alt.badge.img+2

I have a model on which I am using updateRows() in a javascript. This model is displayed in a table on my skuid page. I want all rows in the model to be sorted based on a serial number. But updateRows () adds the new rows at the top of existing rows instead of the bottom. Could someone please suggest a way that could make the new row add at the bottom of existing rows?

2 replies

Forum|alt.badge.img+13

Since Model.prototype.updateRows() does not create rows, I will assume that what you are referring to is actually Model.prototype.createRow().

As per the documentation for Model.prototype.createRow, found here: http://help.skuid.com/m/11720/l/205447-skuid-model-model, if you pass doAppend: true as a parameter when creating the row, it will be appended — that is, added to the end of the Model’s data — rather than prepended.


Forum|alt.badge.img+2

Thanks a ton Zach! You solved my problem! 🙂