When to Use Scrollable Region Functions

Scrollable region functions are specific to the scrollable region in which they are installed. Each scrollable region can have its own begin-scrollable region, end-scrollable region, begin-row, and/or end-row function.

The begin-scrollable region function can be used for performing any desired processing prior to turning over control of a scrollable region to the user. For instance, begin-scrollable region functions can look up and place data from a database in the scrollable region based on fields previously entered by the user. You can also scroll so that certain rows are visible, display messages, go to a different data form, and many other tasks.

The end-scrollable region function is called after all other processing in the scrollable region is completed. This is a good place for branching to other fields, forms, or menus. End-scrollable region functions are also very useful when you need to use the data just entered in the scrollable region, put the data in a database, reset the scrollable region so that the first row is always displayed, set options on other fields based on the data entered, or calculate and display a running total in another field on the form.

The begin-row function is called when the user moves into a new row, including immediately after the begin-scrollable region function is called. If scrolling is needed to move to a new row, the begin-row function is called after scrolling. Begin-row scrollable region functions are useful for setting the PROTECTED and SKIP options (as well as other field options) for the fields in the scrollable region depending on what row you are on.

The end-row function is called when the user moves off a row or exits the form or the region. Scrolling takes place, when necessary, after the end-row function is called.

End-row scrollable region functions are useful for cross validating the values in the fields on that row, and for many other tasks.

More:

Writing and Installing Scrollable Region Functions

Installing Begin- and End-Scrollable Region Functions

Installing Begin- and End-Row Scrollable Region Functions


Home Contents Previous Next