Dynamic query navigation methods
- Last Updated: January 22, 2026
- 2 minute read
- OpenEdge
- Version 12.8
- Documentation
There is a dynamic navigation method for each of the corresponding GET
statements: GET-FIRST( ) method, GET-NEXT( ) method, GET-PREV( ) method, and GET-LAST( ) method. There is also a GET-CURRENT( ) method that corresponds to the GET
CURRENT statement, which again retrieves the current record from the
database, normally to check to see whether it has been changed since you last read
it.
These methods can take optional arguments that you can use to specify the lock mode
(NO-LOCK, SHARE-LOCK, or
EXCLUSIVE-LOCK) and wait mode (if it is NO-WAIT).
The default lock mode is SHARE-LOCK. You generally want to change this
default to specify either NO-LOCK or EXCLUSIVE-LOCK,
depending on whether you need to prepare for it to be changed and protect the record
against changes by other users.
Here’s a completion of the simple procedure used throughout this section, showing the
QUERY-PREPARE(), QUERY-OPEN(), and
GET-NEXT() methods and the use of the
QUERY-OFF-END attribute:
|