Release 10.1A: OpenEdge Development:
ADM Reference

> ## processWebRequest

> Procedure that processes the request from the Web. This is an override of the `webrep.p` version and has the additional logic necessary to handle transaction requests.

> Location: wbdata.p

> Parameters: None

> Notes:

> - The logic in this procedure is based on the values of the two Web fields MaintOption and AddMode which are maintained on the HTML page and received as part of the web request.

> - The value of the Web field AddMode is passed to the object’s AddMode property to distinguish between the creation of a new record or a save of the current.

> - When MaintOption is submit, the assignFields procedure is called. When MaintOption is delete, the deleteRow function is called.

> - When “MaintOption” is “submit” or “delete” the value returned from the Rowids property is set to the CurrentRowids property after the request has been executed. This property is maintained in the HTML page as a context keeper and is usually maintained by the SUPER procedure. It needs to be updated here in case the current record was deleted or a new record has become the current.

> - The procedure has logic to deal with the case of an empty query. It changes the mode of an object to Add by assigning the UpdateMode property’s value to Add. This change is accompanied by an addMessage call that results in a corresponding message being generated in the HTML page.

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