Consultor Eletrônico



Kbase 18410: Running Results Or 4GL Multi-Page Reports From The UIB
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   16/10/2008
Status: Verified

FIX:

Code changes are needed to incorporate PAUSE behavior when a multi-page report is run from a button in the UIB.  Without PAUSE behavior the pages will flash by without pausing and only the final screen will be seen.

1) Status Area, which by default is set to OFF for both the SmartWindow and the regular window in the UIB, must be toggled ON. This is done in the window's Property Sheet. Also in the Property Sheet, you can increase the GUI window's dimensions to best accommodate the output.

2) The following code, wrapped around the RUN myprogram.p statement, will establish the familiar PAUSE behavior with "press space bar to continue" and also repaint the calling program's window.

PAUSE 0 BEFORE-HIDE.

    DO:
      PAUSE BEFORE-HIDE.    /* pause output after each page displays*/
     RUN myprogram.p.      /* program generating multi-page output
                              to the terminal                      */
      PAUSE 0 BEFORE-HIDE.  /* restore UIB default behavior         */
     VIEW FRAME <Frame-name>. /* repaint the UIB calling window    */
   END.