Progress
ADM 2 Reference
processWebRequest (wbdata.p)
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.Parameters: NoneReturns: Nothing (procedure)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 object’s mode 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 © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |