Previous Topic: Areas of a Pageable MapNext Topic: Map Paging Dialog Options


Map Paging Session

A map page refers to the header and footer map fields and to a page of detail occurrences.

When a pageable map is displayed, the page of occurrences that appears in the detail area is determined by the current value of the $PAGE system-supplied data field. For example, given a screen that can hold ten occurrences, if $PAGE equals 1, occurrences 1 through 10 are displayed; if $PAGE equals 2, occurrences 11 through 20 are displayed; and so forth. Actions taken by the user and commands issued by premap and response processes can modify the value of $PAGE.

Beginning a Map Paging Session

A map paging session begins when a dialog associated with a pageable map begins execution. A map paging session ends when the application terminates or when a dialog passes control to another dialog under any of the following conditions:

Note: The first two conditions do not apply when the receiving dialog is not associated with a pageable map. In such cases, the map paging session continues, provided that the third or fourth condition is not met.

If none of the above conditions is met, the map paging session continues. Detail occurrences created during the session can be added to, displayed, and modified by dialogs associated with the pageable map. If the map paging session terminates, the runtime system deletes all detail occurrences created during the session.

One or more dialogs can be associated with the same pageable map in a given map paging session. During a map paging session, premap and response process commands can create, display, retrieve, and modify detail occurrences.

Considerations

The following considerations apply:

Flow of Control in a Map Paging Session

Paging Type

 

Paging request1

Nonpaging request

No MDT set

Any MDT set2

No MDT set

Any MDT set2

NOWAIT

Displays the requested map page

Displays the requested map page

Initiates a function or response process3

Redisplays the same map page

WAIT

Displays the requested map page

Initiates a function or response process3

Initiates a function or response process3

Initiates a function or response process3

RETURN

Initiates a function or response process3

Initiates a function or response process3

Initiates a function or response process3

Initiates a function or response process3

Notes:

1 A paging request occurs when the user presses a control key associated with paging forward or backward or modifies the $PAGE field, if one is defined for the map. If [Clear], [PA1], [PA2], or [PA3] is pressed, any modification to $PAGE is ignored and is not considered as a paging request. If a paging request is not made, refer to the Nonpaging request columns.

2 If the control key pressed is [Clear], [PA1], [PA2], or [PA3], refer to the No MDT set column under the applicable Paging/Nonpaging request column.

3 The function or response is selected as described in Runtime flow of control.

If the same or another map page is displayed, the user can modify map fields, make a paging request, and press a control key, as described above.

If a function or response process is initiated, the internal representations of the header and footer fields are mapped into their associated variable data fields.

More information:

Variable Data Fields