Try OpenEdge Now
skip to main content
Developing WebSpeed Applications
Web Objects : HTML mapping examples : Simple HTML mapping : An alternative to form buffer input
 
An alternative to form buffer input
Here is another way to access HTML input using the FIND statement in w-cstget.w:
FIND customer WHERE Customer.CustNum EQ
  INTEGER(get-value("CustNum")) NO-ERROR.
As described previously for embedded SpeedScript Web objects, WebSpeed provides the get-value API function to return values from a Web page. For the CustNum form element, this function accesses the value directly from HTML input. Using this technique avoids any need to reference the form buffer to retrieve input values from the Web.
Note: When the POST method is used, process-web-request, calls the inputFields procedure by default. The inputFields procedure loads the form buffer with input by running the get-value function for every field on the form.