Restriction: This topic applies only when the AppMaster Builder AddPack has been installed, and applies only to Windows platforms.
Savekeys are places where key values of a record are stored for updating to reread the same record, or for sequentially browsing
a database where the savekey is a placeholder.
You define savekey storage area(s) to store record key values during program execution, if your program:
- Updates records with the Update and Delete program actions.
- Browses records sequentially with the Next program action.
- Displays repeated record blocks that the end user can scroll with the Forward and Backward actions.
Online Express calculates the amount of savekey space needed for you.
- For each record updated, Online Express adds the record primary key size to the savekey size. If that record is in a repeated
record block, Online Express multiplies that amount by the number of rows in the block.
- If a record is scrollable, Online Express adds the record size and key to the savekey size. For SQL, Online Express adds the
size of all columns in the ORDER BY clause. If backward scrolling is permitted, Online Express multiplies this value by 2.
You can store a savekey in one of two ways.
- Specify its storage in the Commarea.
- Paint and define it on your application screen, in the Screen Painter.