insert row at the top of the table

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

Segi
Ebase User
Posts: 649
Joined: Mon Dec 09, 2013 6:37 pm

insert row at the top of the table

#1

Postby Segi » Tue Oct 28, 2014 3:17 pm

Is there a way to modify the default behavior of tables.mytable.insertRow() so that it inserts a new row at the top of the table instead of at the bottom of the table ?
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#2

Postby Jon » Wed Oct 29, 2014 7:52 am

No. One approach would be to insert the row and then sort the table. If you don't already have a sort column, you could add a new integer column to the table, then make sure the inserted row has the lowest value, then it will appear at the top when the table is sorted.
0 x


Who is online

Users browsing this forum: No registered users and 22 guests