Client code to retrieve first batch of data
- Last Updated: October 18, 2024
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
In this example, the client defines variables to hold the ROWID that specify where the last batch ended and an
integer to specify the size of the batch to be retrieved from the server. The
server-side procedure, fetchOrders(), is called to
retrieve 10 order records that are added to the dsOrder
dataset’s temp-table, ttOrder. The first time this
procedure is called, rowRestart is unknown. The
server-side code uses this value to begin the FILL operation starting with the first
record in the database table. The fetchOrders()
procedure returns the ROWID of the next record to
retrieve (where the batch ended). Note this code does not yet show the event handling in
the client that is used to handle the QUERY-OFF-END
condition that triggers another retrieval from the server.
|