Macromedia dreamweaver 8-extending dreamweaver User Manual
118
User Interfaces for Extensions
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 for quoted variables:
appropriate substitutions for quoted variables:
<select name="DBTree" style="width:400px;height:110px" ¬
type="mmdatabasetree" connection="connectionName" noexpandbuttons
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 the
DBTreeControl
attribute as a JavaScript wrapper object for the new tag.
For more examples, see the DBTreeControlClass.js file in the Configuration/Shared/
Common/Scripts folder.
Common/Scripts folder.
Adding a variable grid control
The variable grid control has the following attributes:
The following example adds a simple variable grid control to a dialog box:
<select name="ParamList" style="width:515px;" ¬
type="mmparameterlist columns"="Name,SQL Data ¬
Type,Direction,Default Value,Run-time Value" size=6></select>
type="mmparameterlist columns"="Name,SQL Data ¬
Type,Direction,Default Value,Run-time Value" size=6></select>
noexpandbuttons
When this attribute is specified, the tree control does not draw the
expand Plus (+) or collapse Minus (-)
expand Plus (+) or collapse Minus (-)
indicators
or the associated
arrows on the Macintosh. This attribute is useful for drawing
multicolumn list controls.
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.
the top that lists the name of each column.
Attribute name
Description
name
Name of the variable grid control
style
Width of the control, in pixels
type
Type of control
columns
Each column must have a name, separated by a comma
columnWidth
Width of each column, each separated by a comma. The columns are
of equal width if you do not specify widths.
of equal width if you do not specify widths.
Attribute name
Description