Try OpenEdge Now
skip to main content
Developing WebSpeed Applications
WebSpeed API Reference : run-web-object
 

run-web-object

This procedure attempts to run a procedure as a WebSpeed Web object. By default, all Web objects run with run-web-object are run as persistent procedures. However, if the STATE-AWARE-ENABLED environment variable has a value other than "YES", WebSpeed does not load web\objects\stateaware.p and does not run the procedure as a persistent procedure.

Location

web\objects\web-util.p

Parameters

INPUT pcFilename AS CHARACTER
The filename of the Web object to run.

Notes

The filename for the Web object must exist in a directory listed in the PROPATH for the WebSpeed agent. If only compiled r-code (*.r) exists it will be run, even if the requested file name explicitly matches the source file (*.w).

Examples

\* Run another web object. Make sure REQUEST_METHOD is appropriate for that
object *\
REQUEST_METHOD = ‘GET':U.
RUN run-web-object IN web-utilities-hdl (‘success.w':U).