WebSpeed
Developer’s Guide


How To Make a Web Object State-aware

Basically, you run the setWebState function to make a Web object state-aware, or to cancel the state-aware condition:

SYNTAX
setWebState (time-out). 

time-out

The extent of the time-out interval stated in minutes:

NOTE: The setWebState function is a wrapper for the set-web-state method procedure. For more information about the syntax of setWebState or set-web-state, see the AppBuilder online help.

The setWebstate procedure must be run before the HTTP header output and should be run before any cookie functions are called. The following is an example of its use:

PROCEDURE output-header :

/*---------------------------------------------------------------------

Purpose: Output the MIME header, and any "cookie" information

----------------------------------------------------------------------*/

/* Check the status of the transaction. If the transaction is
complete, turn off state-aware. If the transaction is ongoing
set a 15 minute timeout period. */

IF state eq "complete":U

THEN setWebstate (0).
ELSE setWebstate (15).

/* This file is going to create a standard HTML page. */

RUN outputContentType IN web-utilities-hdl ("text/html":U).

END PROCEDURE. 

For more detailed information about controlling WebSpeed transactions, see the section, "Implementing Transaction Control." For more information about time-outs, see the section, "Handling State-aware Time-outs."


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095