Adding A Variable Grid Control - MACROMEDIA DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER Manual

Extending dreamweaver
Hide thumbs Also See for DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER:
Table of Contents

Advertisement

To add a database tree control to a dialog box, you can use the following sample code with
appropriate substitutions for quoted variables:
<select name="DBTree" style="width:400px;height:110px" ¬
type="mmdatabasetree" connection="connectionName" noexpandbuttons
showHeaders></select>
You can change the
You can use the
For more examples, see the DBTreeControlClass.js file in the Configuration/Shared/Common/
Scripts folder.

Adding a variable grid control

The variable grid control has the following attributes:
Attribute name
name
style
type
columns
columnWidth
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>
The following example creates a variable grid control that is 500 pixels wide, with five columns of
various widths:
<select name="ParamList" style="width:500px;" ¬
type=mmparameterlist columns="Name,SQL Data Type,Direction, ¬
Default Value,Run-time Value" columnWidth="100,25,11," size=6>¬
</select>
This example creates two blank columns that are 182 pixels wide. (The specified columns total
136. The total width of the variable grid control is 500. The remaining space after the first three
columns are placed is 364. Two columns remain; 364 divided by 2 is 182.)
This variable grid control also has a JavaScript wrapper object that should be used to access and
manipulate the variable grid control's data. You can find the implementation in the
GridControlClass.js file in the Configuration/Shared/MM/Scripts/Class folder.
attribute to retrieve selected data and display it in the tree.
connection
attribute as a JavaScript wrapper object for the new tag.
DBTreeControl
Description
Name of the variable grid control
Width of the control, in pixels
Type of control
Each column must have a name, separated by a comma
Width of each column, each separated by a comma. The columns are of
equal width if you do not specify widths.
Using custom UI controls in extensions
59

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER and is the answer not in the manual?

This manual is also suitable for:

Dreamweaver mx 2004

Table of Contents