Consultor Eletrônico



Kbase P98731: Displaying Data using Output to Web
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   12/13/2004
Status: Unverified

GOAL:

Displaying Data using Output to Web

GOAL:

How to display Data using Output to Web Statement?

FACT(s) (Environment):

Webspeed 3.1

FIX:

Use the OUTPUT TO WEB statement to output data to the Web page directly from a WebSpeed file. This statement begins sending output to the stream that delivers content to the browser.
Using the frame statement When outputting data to the browser using the OUTPUT TO WEB statement, format the output using standard Progress frame statements. The frame statement options include TITLE, SIDE-LABELS, PAGED, PAGE-SIZE, and others.

The display.dat file You can create a file called display.dat to override the default output of the OUTPUT TO WEB display. The display.dat file controls the HTML formatting of output of data performed by the display statement. This file contains a list of HTML tags to use to format each of the frame elements. You can create and modify this file to change the formatting tags.

This is an example of entries in the display.dat file.

:HTML-FRAME-BEGIN:#
<PRE>:
:HTML-FRAME-END:#
</PRE>:
:HTML-END-OF-PAGE:#
<HR>:

This example will format the frame information as preformatted HTML so the HTML is output using the browser's non-proportional font (similar to standard report output). A horizontal line tag is added to mark the end of each page of output.

If created, the display.dat file is a text file and is included in the ProPath of your broker. Each broker can have a different display.dat and you must restart the WebSpeed broker if changes are made to its corresponding display.dat file.