Specifications

Chapter 336
Database controls
Using Dreamweaver, you can extend the HTML
<select> tag to create a database tree control.
You can also add a variable grid control. The database control is useful for displaying database
schema. The variable grid control displays tabular information.
The following illustration shows an advanced Recordset dialog box that uses a database control
and a variable grid control:
Adding a database tree control
The database control has the following attributes:
Any option tags that are placed inside the <
select> tag are ignored.
To add a database tree control to a dialog box, you can use the following sample code with
appropriate substitutions:
<select name="DBTree" style="width:400px;height:110px" ¬
type="mmdatabasetree" connection="connectionName" noexpandbuttons
showHeaders></select>
You can change the connection attribute to retrieve selected data and display it in the tree. You
can use
DBTreeControl as a JavaScript wrapper object for the new tag. For more examples, see
the DBTreeControlClass.js file in the Configuration\Shared\Scripts folder.
Attribute Name Description
name Name of the database control
control.style Width and height, in pixels
type Type of control
connection Name of the database connection that is defined in the Connection Manager; if empty,
the control is empty.
noexpandbuttons When this attribute is specified, the tree control does not draw the plus (+)
or collapse
minus (-)
indicators or the associated triangle arrows on the Macintosh. This attribute
is useful for drawing multicolumn list controls.
showheaders When this attribute is specified, the tree control displays a header at the top that lists
the name of each column.