Try OpenEdge Now
skip to main content
Developing WebSpeed Applications
Handling DISPLAY Output : Working with DISPLAY output : Directing DISPLAY output : Using the WebSpeed-defined output stream
 
Using the WebSpeed-defined output stream
WebSpeed provides two SpeedScript preprocessor definitions to help you use the WebSpeed-defined output stream:
*&GLOBAL-DEFINE WEBSTREAM STREAM WebStream
*&GLOBAL-DEFINE DISPLAY DISPLAY {&WEBSTREAM}
These definitions appear in the install-path/src/web/method/cgidefs.i include file used by all Web objects. Thus, the two DISPLAY statements in the following example yield the same result:
FIND FIRST Customer NO-LOCK.DISPLAY {&WEBSTREAM} Customer.Name Customer.Phone.{&DISPLAY} Customer.Name Customer.Phone.
Use one of the forms shown in boldface to guarantee that all of your DISPLAY formatted output appears in the Web page at the corresponding point where the code appears in your Web object.