Mmdb.needtorefreshcoldfusiondsnlist(), Mmdb.popupconnection() – Adobe Dreamweaver API Reference CS5 User Manual
Page 68
63
DREAMWEAVER API REFERENCE
The database API
Last updated 8/27/2013
MMDB.needToRefreshColdFusionDsnList()
Availability
Dreamweaver MX.
Description
This function tells the Connection Manager to empty the cache and get the ColdFusion data source list from the
application server the next time a user requests the list.
Arguments
None.
Returns
Nothing.
MMDB.popupConnection()
Availability
Dreamweaver MX.
Description
This function starts a connection dialog box. This function has the following three signatures:
•
If the argument list consists only of dialogFileName (a string), the
popupConnection()
function makes
Dreamweaver open the Connection dialog box so you can define a new connection.
•
If the argument list consists only of connRec (a connection reference), the
popupConnection()
function makes
Dreamweaver launch the Connection dialog box in edit mode for editing the named connection. In this mode, the
name text field is dimmed.
•
If the argument list consists of connRec and the Boolean value bDuplicate, the
popupConnection()
function makes
Dreamweaver open the Connection dialog box in duplicate mode. In this mode, the name text field is blanked out,
and the remaining properties are copied to define a duplicate connection.
Arguments
dialogFileName or connRec or connrec, bDuplicate
•
The dialogFileName argument is a string that contains the name of an HTML file that resides in the
Configuration/Connections/server-model folder. This HTML file defines the dialog box that creates a connection.
This file must implement three JavaScript API functions:
findConnection()
,
inspectConnection()
, and
applyConnection()
. Typically, you create a JavaScript file that implements these functions and then include that
file in the HTML file. (For more information on creating a connection, see “
•
The connRec argument is a reference to an existing Connection object.
•
The bDuplicate argument is a Boolean value.
Returns
Nothing. The defined connection dialog box appears.