Specifications

Chapter 15196
generateDynamicSourceBindings()
Availability
Dreamweaver UltraDev 1
Description
Returns the children of a top-level node.
Arguments
sourceName
sourceName
is the name of the top-level node whose children you want to return.
Returns
Dreamweaver expects an array of JavaScript objects where each object can have as many as
four properties:
1 The title property is the label string that appears on the right of the icon for each parent
node. The
title property is required.
2 The allowDelete property is an optional property. If this property is set to false, when the
user clicks on this node in the Bindings panel, the minus (-) button is disabled. If this
property is set to
true, the minus (-) button is enabled. If the property is not defined, the
default is
true.
3 The dataSource property is the simple name of the file in which the findDynamicSources()
function is defined. For example, the
findDynamicSources() function in Configuration/
DataSources/ASP_Js/Session.htm sets the
dataSource property to session.htm. This is a
required property.
4 The name property is the name of the server behavior that is associated with the data source, if
one exists. It is a required property. Some data sources, such as recordsets, are associated with
server behaviors. When you create a recordset and give it the name
rsAuthors, the name
property must equal
rsAuthors. Other data sources, such as session variables, do not have a
corresponding server behavior. Their name property must be the empty string (
"").
Note: A JavaScript class that defines these properties exists in Configuration/Shared/Common/Scripts/
DataSourceClass.js.