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:
The runtime system stores detail occurrences in the order in which they are created and divides them into pages, based on the number of detail occurrences that can fit on the screen at one time. A detail occurrence is displayed on the screen only when the map page to which the occurrence belongs is displayed.
The process that issues the PUT NEW DETAIL command continues to execute and can create additional detail occurrences. The process must issue a DISPLAY command to terminate processing. The runtime system does not process information entered during a pseudo-converse until the DISPLAY command is issued.
Note: In this case, the DISPLAY command does not send information to the terminal. Header and footer variable data fields should be primed before the first map page is displayed. If the map contains a message field in the header or footer area, any text for the message field should be specified once by issuing a PUT NEW DETAIL command before the first map page is displayed.
Map field attributes set temporarily by the user or by map modification commands are reset. Attributes set permanently in the map definition or by map modification commands remain set.
$PAGE determines the next map page to be displayed.
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.
Note that if a modified detail occurrence is not retrieved following a pseudo-converse, it is not automatically considered to be modified following a subsequent pseudo-converse. The detail occurrence must once again have the two characteristics listed above.
A detail occurrence that is not a modified detail occurrence cannot be retrieved by dialog process code.
|
Copyright © 2014 CA.
All rights reserved.
|
|