Use Previous and Next to scroll through group of data on Gen block model screens, and have a need to print each page of scrollable data when select Previous or Next. Use the 'Printer Terminal Is' command within the PStep, but it only prints the first page. Would like to print each/all pages of data.
Release : 8.6
Component : Gen Runtime CICS
When the Next/Previous keys are pressed, the Dialog Manager performs the scrolling without ever executing the PStep (Procedure Step) code when automatic screen scrolling is set. Therefore the 'Printer Terminal ID' command within the PStep would only be executed on the retrieval of the first page of data. Gen developers would need to make the screen non-auto scrolling (uncheck the box) and then implement manual scrolling logic in the PStep. Users would then need to execute the PStep multiple times in order to print all the group view data as the 'Printer Terminal ID' would be executed at the end of the PStep for each of the Next or Previous executions of each page of data.
As an alternate method, Gen developers could implement an External Action Block (EAB) and on the condition when a group of data is initially retrieved within the PStep, send the entire retrieved data group to the EAB and print it to a form/file from within the external call.
PRINTER TERMINAL ID documentation:
Screen properties related to scrolling: