LOTUS CONNECTORS

Examples: Retrieving data from an external database
1. This agent declares new ODBCConnection, ODBCQuery, and ODBCResultSet objects; connects to a data source; associates the ODBCConnection object with the ODBCQuery object and the ODBCResultSet object with the ODBCQuery object; specifies and executes a query; and examines the result set from the first to last row.
2. This script executes when the user exits from the Part_Number field in a Parts document. The script executes a query using the value of Part_Number in the WHERE clause of the SELECT statement, then fills in the PartName, Cost, and Description fields based on values in the retrieved record.
3. This agent sets the parameters in an SQL query before executing it. NumParameters is used as the upper bound of a loop, and GetParameterName is used to prompt for each parameter value.
See Also