Back
sortDescOnNew
Editing, Updating and Creating Records
sortDescOnNew
Sort descending by this field after record is created
Default:
After a record is created, we want that record to be visible on the screen. We do this by forcing the database to sort the recordset by a specific field in descending order.


Typically this field will be an auto-incrementing number or creation date. This field should be indexed for speed.

Syntax
# CreatedTimeStamp is a field in the table
$lens->sortDescOnNew = 'CreatedTimeStamp';

 Basic:Yes  Advanced/Enterprise:Yes  DynamicEdit:Yes   [Version 3.3.5]