Printing reports and the STREAM-IO option
- Last Updated: January 17, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
For toggle boxes, radio sets, sliders, combo boxes, and selection lists, trying to output the widget to any other device besides the screen yields nothing. Neither the widget nor the value it contains appears in files or printed reports.
Rather
than tack a VIEW-AS TEXT phrase onto every widget,
you can use the STREAM-IO option of the frame phrase
to reduce every widget to textual data. Here is an example:
|
You must use the STREAM-IO option
on every output frame intended for a destination other than the
screen.
Although primarily a tool for sending data to files
and reports, the STREAM-IO option also reduces
all widgets to textual data for screen output.
To see the effects of the STREAM-IO option on screen data:
- Open i-10-03.p and run it. This report is the same as the one from the previous exercise, but without the special interface.
- Press END-ERROR and then SPACEBAR to return to the Procedure Editor.
- Remove
STREAM-IOfrom the frame phrase and run the procedure again.Notice that the
lBalDuevariable displays as a disabled toggle box in the iterations. - Press END-ERROR and then SPACEBAR to return to the Procedure Editor.
If you scroll through the text of the procedure,
you can see that the STREAM-IO option on the frame
phrase of the iterating block is the only change.