Using 'Printer Terminal IS' to print Gen block mode scrollable repeating group
search cancel

Using 'Printer Terminal IS' to print Gen block mode scrollable repeating group

book

Article ID: 245702

calendar_today

Updated On:

Products

Gen - Workstation Toolset Gen

Issue/Introduction

Using 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.  When use the 'Printer Terminal IS' command within the PStep it only prints the first page and would like to print each/all pages of data. 

Environment

Gen Block Mode applications

Resolution

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 IS' command within the PStep would only be executed on the retrieval of the first page of data.

Gen developer would need to make the screen non-automatic scrolling (uncheck the Scroll box on the Screen Properties Dialog) 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 IS' 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.

Additional Information