beautypg.com

Mmdb.getconnectionlist(), Mmdb.getconnectionname() – Adobe Dreamweaver API Reference CS5 User Manual

Page 62

background image

57

DREAMWEAVER API REFERENCE

The database API

Last updated 8/27/2013

Note: These properties are the standard ones that Dreamweaver implements. Developers can define their connection
types and add new properties to this standard set or provide a different set of properties.

MMDB.getConnectionList()

Availability
Dreamweaver UltraDev 1.

Description
This function gets a list of all the connection strings that are defined in the Connection Manager.

Arguments
None.

Returns
An array of strings where each string is the name of a connection as it appears in the Connection Manager.

Example
A call to

MMDB.getConnectionList()

can return the strings

["EmpDB", "Test", TestEmp"]

.

MMDB.getConnectionName()

Availability
Dreamweaver UltraDev 1.

Description
This function gets the connection name that corresponds to the specified connection string. This function is useful
when you need to reselect a connection name in the user interface (UI) from data on the page.

If you have a connection string that references two drivers, you can specify the connection string and the driver that
corresponds to the connection name that you want to return. For example, you can have two connections.

Connection 1 has the following properties:

ConnectionString="jdbc:inetdae:velcro-qa-5:1433?database=pubs"

DriverName="com.inet.tds.TdsDriver"

Connection 2 has the following properties:

variables

Array of page variable names and their corresponding values used during Live Data and Preview In
Browser

catalog

Used to restrict the metadata that appears (for more information, see

MMDB.getProcedures()

” on

page

70)

schema

Used to restrict the metadata that appears (for more information, see

MMDB.getProcedures()

” on

page

70)

filename

Filename of dialog box that was used to create the connection

Property

Description