Previous Topic: Amount of Storage per Detail OccurrenceNext Topic: Determining the Number of Pages per Pageable Map


Number of Detail Occurrences per Detail Area

The number of detail occurrences that can be mapped out in the detail area for the map at runtime is determined by:

  1. Dividing the number of screen lines available for the detail area at runtime by the number of screen lines in the detail occurrence defined for the detail area.
  2. Rounding the resulting value down to the next integer if an integer value is not obtained in the division operation.

Determining the Number of Lines Available at Runtime

The number of screen lines available for the detail area at runtime depends on the number of lines that are available on a given terminal screen. To find the number of lines available for the detail area at runtime, perform the following steps:

  1. Add the number of lines reserved for the header area to the number of lines for the footer area.
  2. Subtract the sum from the number of screen lines on the terminal.

Example

The fields on the following screen were used as the basis for our calculations.

EMPLOYEE PERSONAL DATA EMPLOYEE NAME:?___________________________________ EMPLOYEE NUMBER:? _____ SOCIAL SECURITY NUMBER:?_____________ _______________________________________________________________________________ PAGE:?_____

How Many Detail Occurrences in a Detail Area?

The following calculations were used to estimate how many detail occurrences can be mapped out to the detail area at runtime for the map above:

runtime screen lines...............10

Lines in detail occurrence........ 2

_____________________________________________

Times detail occurrence mapped out...5

The number of screen lines at runtime and the number of lines in the detail occurrence determine the number of detail occurrences per detail area. Multiplying this value with the integer amount of storage per detail occurrence produces the amount of storage needed for a map page.