iTP Active Transaction Pages (iTP ATP) Programmer's Guide
ATP Objects, Properties, and Methods
iTP Active Transaction Pages (iTP ATP) Programmer’s Guide—522292-002
4-32
atp.request Object
atp.request Object
The request object contains information related to one request from a web browser.
Constructor
Private
This object is constructed from each request received from the iTP Secure
WebServer.
Properties
variables (read-only)
This variable property is read-only. If you try to modify the value, ATP will report
an error message. The variables array contains one entry for each environment
variable passed in the request. These environment variables contain information
about the web browser and web server (for example REMOTE_ADDR,
SERVER_SOFTWARE). The array also contains an entry for each name provided on
a form or in a query URL from the web browser. This array does not contain entries
for ATP configuration variables, because those variables are not passed in the
request message.
To iterate through the variable values, try the following technique:
for (i=0; i<atp.request.variables.length;i++)
{
atp.print (atp.request.variables[i] + '=' +
atp.request[atp.request.variables[i]] + '\n');
}
This technique works because JavaScript lets you use array subscript notation for
access to object properties.
If duplicate environment variables occur (for example, as a result of identically
named fields on a form), only the last arriving value is stored. To get duplicate
values, either use the GET method and parse the data out of QUERY_STRING (a
72 Interval day to second
73 Interval fraction
74 Interval second to fraction
75 Interval minute to fraction
76 Interval hour to fraction
77 Interval day to fraction
Note SQL nullable option supported for most data types
Table 4-4. Data Types Used by the atp.field Object (page 3 of 3)
Structure Number Description