iTP Active Transaction Pages (iTP ATP) Programmer's Guide

ATP Examples
iTP Active Transaction Pages (iTP ATP) Programmer’s Guide522292-002
F-5
General-Purpose Functions in ATP Examples
SQLQuery (query,
tmf, maxrows,
skiprows)
Creates an SQL object and
optionally a transaction
object, and executes the
query.
examples/sql_tools/explorer/isql.inc
SQLQueryCreate
(query)
Creates an SQL object and
optionally a transaction
object, but does not execute
the query.
examples/sql_tools/explorer/isql.inc
The following functions are defined for the URL
object
doSocketErrors
(comment)
Formats a message reporting
a socket error, and stops
execution of the script.
examples/sockets/iurlclass.inc
doURLClose Closes a URL. examples/sockets/iurlclass.inc
doURLOpen Opens a URL and sends
name/value pairs.
examples/sockets/iurlclass.inc
doURLPrint Retrieves and prints the
contents of a URL.
examples/sockets/iurlclass.inc
doURLPrintHeaders Prints HTTP headers. examples/sockets/iurlclass.inc
doURLRead Reads URL data, and parses
headers.
examples/sockets/iurlclass.inc
URL (protocol, host,
port, file)
Creates a URL object. examples/sockets/iurlclass.inc
The following functions are defined for the
variables object
doAddVariable
(name, value)
Stores a variable name in the
variables array, and stores the
corresponding value in the
property for that variable
name.
sockets/iurlclass.inc
variablesObject () Creates an array of
name/value pairs.
sockets/iurlclass.inc
The following functions are not part of any object
definition
accessCheck
(accessNumber,
serviceName)
Checks a user’s logon ID to
authorize access to the
application.
examples/pathway/homebank
/WebPages/access_check.inc
isDigit (s) Returns true if the supplied
value is a digit (0-9); returns
false otherwise.
examples/pathway/homebank
/Webpages/util_client.inc
Table 6-2. Functions Defined in ATP Examples (page 2 of 3)
Function Name What It Does Where to Find It