16. Table Fields : The Data Set : How You Can Move Around a Table Field
 
Share this page                  
How You Can Move Around a Table Field
The keystrokes that move the cursor between fields in a form also move the cursor between table field columns. Other keystrokes move the cursor up and down a row at a time.
When the user reaches the last row displayed by the table field, attempting to move down another row causes the next row in the data set, if any, to appear at the bottom of the table field. To accommodate the new row, the row at the top of the table field moves temporarily out of sight. This process is known as scrolling. Similarly, when the user attempts to move above the first displayed row of the table field, another scroll occurs, bringing into view the row in the data set that precedes the first displayed row and causing the last displayed row to drop out of sight.
For greater efficiency in scrolling, it is possible to scroll up and down a page at a time. A page corresponds to the number of rows that can be displayed at once in the table field. When the user scrolls up a page, the bottom row in the display becomes the first row, and the remaining rows in the display are taken from subsequent rows in the data set.
All of these movements are controlled by built-in functions (FRS commands) of the FRS, which are mapped to specific keys on your terminal. For a complete list of FRS commands and information on how to map them to your terminal, see the appropriate section of this guide.
In addition to the automatic scrolling provided by the FRS, you can define a scrolling operation that scrolls your display to a desired row in the data set. For information about these operations, see scroll Statement--Target Scrolls.