User Guide

106 The Database Connectivity API
Description
Dreamweaver calls this function to initialize the dialog box data for defining a connection
when the user edits an existing connection. This process lets Dreamweaver populate the
dialog box with the appropriate connection information.
Argument
parameters
The parameters argument is the same object that the findConnection() function returns.
Returns
Nothing.
applyConnection()
Availability
Dreamweaver UltraDev 4.
Description
Dreamweaver calls this function when the user clicks OK in the connection dialog box. The
applyConnection() function generates the HTML source for a connection. Dreamweaver
writes the HTML to the Configuration/Connections/connection-name.ext include file, where
connection-name is the name of your connection (see “Create the layout for the connection
dialog box.” on page 101), and .ext is the default extension that is associated with the server
model.
Arguments
None.
Returns
The HTML source for a connection. Dreamweaver also closes the connection dialog box. If a
field validation error occurs,
applyConnection() displays an error message and returns an
empty string to indicate that the dialog box should remain open.
000_DW_API_Print.book Page 106 Wednesday, July 20, 2005 11:58 AM