Navigating a Report With the TIBCO WebFOCUS Viewer

How to:

When you run a report designated for On-Demand Paging, the Viewer opens automatically and displays the first page of the report. The Viewer consists of two panes: the Report Pane and the Viewer Control Panel, as shown in the following image.

Report Pane and the Viewer Control Panel

The Report Pane is the larger pane and contains one page of report output. When you first run a report, the Report Pane contains the first page of report output. The Viewer Control Panel contains the controls that allow you to display specific pages, deliver the entire report to your web server, and search your document for particular strings of information.

Syntax: How to Enable the WebFOCUS Viewer

SET WEBVIEWER = {OFF|ON}

or

ON TABLE SET WEBVIEWER {OFF|ON}

where:

OFF

Disables on-demand paging. downloads the entire report to a standard browser window. OFF is the default value.

ON

Enables on-demand paging. downloads the first page of a report to the browser in the Viewer. The number of lines displayed at one time depends on Windows desktop settings (resolution).

Example: Enabling the Viewer

The procedure and launch page for this example are run in . They must be tested and run in this environment.

  1. Create a procedure named ONDEMAND, which displays an order report for a store in the Viewer.

    Procedure:

    SET WEBVIEWER=ON
    TABLE FILE CENTORD
    PRINT ORDER_NUM ORDER_DATE
    BY STORE_CODE
    WHERE STORE_CODE EQ '1003DC'
    ON TABLE SET PAGE-NUM OFF
    ON TABLE SET STYLE *
    TYPE=REPORT, GRID=OFF,$
    ENDSTYLE
    END
  2. Create a launch page from which a user can run the report.
  3. Run the launch page, and click the link. The report displays in the Viewer.
    WebFOCUS viewer report diagram