Adobe 38040334 - Dreamweaver CS3 User Manual page 303

Extending dreamweaver
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

Description
This function is called when the user double-clicks a data source name in the Bindings panel to edit the data source.
You can implement this function to handle user edits in the tree. Otherwise, the server behavior that matches the
data source is automatically invoked. The extension developer can use this function to override the default imple-
mentation of server behaviors and provide a custom handler.
Arguments
,
sourceName
bindingName
• The
argument is the name of the top-level node to which the child node is associated.
sourceName
• The
argument is the name of the child node.
bindingName
Returns
Dreamweaver expects a Boolean value:
findDynamicSources()
Availability
Dreamweaver UltraDev 1.
Description
This function returns the top-level nodes from the data source tree that appears in the Dynamic Data or Dynamic
Text dialog box or in the Bindings panel. Each data source file has an implementation of the
function. When Dreamweaver refreshes the tree, Dreamweaver reads through all the files
findDynamicSources()
in the DataSources folder and calls the
Returns
Dreamweaver expects an array of JavaScript objects where each object can have as many as five properties, which are
described in the following list:
• The
property is the label string that appears to the right of the icon for each parent node. The
title
property is always required.
• The
property is the path of a file that contains the icon (a GIF image), which represents the parent
imageFile
node in the tree control in the Dynamic Data or Dynamic Text dialog box or in the Bindings panel. This property
is required.
• The
property is optional. If this property is set to
allowDelete
Bindings panel, the Minus (-) button is disabled. If this property is set to
the property is not defined, the default is
• The
property is the simple name of the file in which the
dataSource
defined. For example, the
Configuration/DataSources/ASP_Js folder, sets the
required.
• The
property is the name of the server behavior that is associated with the data source, if one exists. Some
name
data sources, such as recordsets, are associated with server behaviors. When you create a recordset and name it
, the
attribute must equal
rsAuthors
name
string (
) if no server behavior is associated with the data source (such as a session variable).
""
Note: A JavaScript class that defines these properties exists in the DataSourceClass.js file, which is located in the
Configuration/Shared/Common/Scripts folder.
if the function has handled the edit;
true
findDynamicSources()
.
true
function in the Session.htm file, which is located in the
findDynamicSources()
dataSource
rsAuthors
false
function in each file.
, when the user clicks this node in the
false
, the Minus (-) button is enabled. If
true
findDynamicSources()
property to
session.htm
. The
property is always defined, but can be an empty
name
DREAMWEAVER CS3
Extending Dreamweaver
otherwise.
title
function is
. This property is
297

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents