beautypg.com

Mmdb.hasconnectionwithname(), Mmdb.needtopromptforrdsinfo() – Adobe Dreamweaver API Reference CS5 User Manual

Page 67

background image

62

DREAMWEAVER API REFERENCE

The database API

Last updated 8/27/2013

Arguments
connName

The connName argument is a connection name that is specified in the Connection Manager. It identifies the
connection string that Dreamweaver should use to make a database connection to a live data source.

Returns
A user name string that is associated with the connection name.

Example
The statement

MMDB.getUserName ("EmpDB");

might return

"amit"

.

MMDB.hasConnectionWithName()

Availability
Dreamweaver UltraDev 4.

Description
This function determines whether a connection of a given name exists.

Arguments
name

The name argument is the connection name.

Returns
Returns a Boolean value:

true

indicates that a connection with the specified name exists;

false

otherwise.

MMDB.needToPromptForRdsInfo()

Availability
Dreamweaver MX.

Description
This function determines whether Dreamweaver should open the RDS Login Information dialog box.

Arguments
bForce

The bForce argument is a Boolean value;

true

indicates that the user who has previously cancelled out of the RDS

login dialog box still needs to be prompted for RDS login information.

Returns
A Boolean value:

true

indicates that the user needs to be prompted for RDS login information;

false

otherwise.