Previous Topic: CLICK and DOUBLE-CLICK GUI EventsNext Topic: User-Defined Events


SCROLL TOP and SCROLL BOTTOM GUI Events

A search is performed on a list window to limit the number of rows returned from the database, however sometimes the number of rows returned exceeds the cardinality of the group view.

The SCROLL TOP and SCROLL BOTTOM events allow processing to retrieve the next group of data in either direction.

When the SCROLL TOP EVENT is triggered, the following actions occur:

When the SCROLL BOTTOM event is triggered, the following actions occur:

For example, the user requests all the customers with addresses in California be sorted by last name. There are 15,042 customers in California.

The group view containing the customers has a cardinality of 500.

After the user scrolls through the first 500 customers, a SCROLL BOTTOM event is triggered to retrieve the next 500 customers in last name order.

If the user wants to scroll back up to the first 500 customers, they move the scroll indicator to the top of the scroll bar. The SCROLL TOP event is triggered, and the previous 500 customers are retrieved in last name order.

Note: If new customers were added in the first 500 group, the first record is not displayed in the previous group of 500 customers.

The user is not able to look at the last window of data by moving the scroll indicator to the bottom of the scroll bar since this action triggers the SCROLL BOTTOM event (the same is true for the SCROLL TOP event). Even using the up and down arrow keys, the user may trigger a SCROLL TOP or SCROLL BOTTOM event unintentionally.

There are three scrolling alternatives: