Table component Drag row

We are in need to drag rows from a table and place them between other rows within the same table to rearrange the order or priority. We maintain a column for priority and that will change based on insertion of rows between other rows.

Is there a way to do this? How best can we achieve this if not available directly?

You won’t be able to drag rows and place them between other rows. The best you can do is put buttons on the window that a user can press that will move a row up or down by changing the priority column value. You can sort a table by any column in scripting:table = event.source.parent.getComponent("Table") table.sortByColumn("priority")

We may have to move the rows from the bottom to the top of a list with 10s of rows. A button will only allow one move at a time; is that correct?

No, you can move multiple. Just set the “Selection Mode” property of the table to “Multiple Interval” so you can select multiple rows. In your script you can call a function to get all of the selected rows:[code]table = event.source.parent.getComponent(“Table”)
rows = table.getSelectedRows()
for row in rows:

do something with each row[/code]