Sort Column & Toggle

# Sort Field <- field name
If [ ]
Else If [ Get ( ScriptParameter ) = "Seq" ]
    Sort Records [ Restore; No dialog ]

Else If [ Get ( ScriptParameter ) = "Project" ]
    Sort Records [ Restore; No dialog ]

Else If [ Get ( ScriptParameter ) = "Title" ]
    Sort Records [ Restore; No dialog ]

Else If [ Get ( ScriptParameter ) = "URL" ]
    Sort Records [ Restore; No dialog ]

End If

# TOGGLE TOP/BOTTOM
If [ Get ( RecordNumber ) = 1 ]
    Go to Record/Request/Page [ Last ]
Else
    Go to Record/Request/Page [ First ]
End If

sortfield

Format the column title as a button, setup to perform the script which takes the field name as parameter and sorts by it, then goes to either the first record or last record alternately.

Follow

Get every new post delivered to your Inbox.