In this topic you will make the required modifications so that new records will be displayed at the top of the list. This means that the value of the order_crs column for new entries will no longer have to equal the maximum of all others plus one, but it should be the lowest possible.
NeXTensio allows changing the place where the record is inserted, by simply passing an URL parameter from the list to the NeXTensio form, when adding a new record. To make the required changes, follow the next steps:
Open the index page in Dreamweaver, if necessary.
Click on the Add new
link, in the list footer:

Now click on the folder icon, next to the Link text field, in the Property
inspector:
![]()
In the dialog box that opens, click on the Parameters button to add a new URL parameter to the existing link.
In the new dialog box, click on the Plus (+) button on top of the parameter list. This will add a new, blank parameter. Configure it as shown below:
For the Name, enter kt_insert_first. This is the name recognized by the NeXTensio form.
For the Value,
enter 1.

Now click on OK twice, to apply the changes.
The algorithm used by the NeXTensio form in order to fill in the order_crs value will be different now, because the URL parameter is recognized. The algorithm is as follows:
First, the minimum of all order values is retrieved.
A multiple update operation takes place, for each record, the order value is increased by 1.
The original insert operation takes place, with the order column containing the minimum retrieved before.
This way, new entries will be on top of the list:
