6. Working with Arrays, Table Fields, and Collections : Table Field Operations : How You Can Scroll Through Data : How You Can Trigger SetValue, Exit, and Scroll Events
 
Share this page                  
How You Can Trigger SetValue, Exit, and Scroll Events
When a user scrolls through data using the single character find feature or an arrow key, the action triggers a SetValue event, an Exit event, or both, for the field being exited.
When a user uses the scroll bar, a SetValue or Exit event is triggered only if the row that had the current input focus scrolls out of the display. If the current row remains displayed, you can determine whether the user scrolled through the data by using a Scroll event.
The Scroll event is triggered when the user clicks the scroll bar of a table field with an interactive bias (FB_LANDABLE or FB_CHANGEABLE). The Scroll event is also triggered when scrolling occurs due to use of a scrolling key, Page Down, Page Up, Home, or End.
If a SetValue or Exit event is triggered by moving the scroll bar, these events are executed before the Scroll event. Because the Scroll event is not chained off the SetValue or Exit events, a resume statement in either of those events does not affect the running of the Scroll event.
For more information about Scroll events, see the Language Reference Guide. For more information about event chains, see Managing Event Queues (see Managing Event Queues).