Technote Details :: Move up/down does not work for newly inserted records
Issue
I've created a , using order columns. The move up / down works for records that were already in the table, but for records added through the form, only the client-side ordering is performed. When I click the button, the order is lost.
Reason
This happens because the list and form do not use the same table column for the move up/down option. The form and list must use the same column, because when inserting a new record through the , a trigger will auto - increment the order column, thus avoiding duplicate or incorrect values. Based on this column, the list orders the elements, and allows the move up and down actions. If a different numeric column is selected in the , it will be auto-incremented instead of the actual order column, thus resulting in an incorrect value for the order column.
Solution
In order to be able to use the move up / down options in the , you must specify the same column both in the , and the . If you accidentally selected another column in one of the wizards, edit their corresponding server behaviors from the server behaviors tab, and select the correct one.