Specifications
Data Sources 195
Description
Returns the top-level nodes from the data source tree that appears in the Dynamic Data or 
Dynamic Text dialog box or the Bindings panel. Each data source file has an implementation of 
the 
findDynamicSources() function. When Dreamweaver refreshes the tree, Dreamweaver 
reads through all the files in the DataSources folder and calls the 
findDynamicSources() 
function in each file.
Returns
Dreamweaver expects an array of JavaScript objects where each object can have as many as 
five attributes:
1 The title property is the label string that appears to the right of the icon for each parent 
node. The 
title property is always required. 
2 The imageFile property is the path of a file that contains the icon (a GIF image), which 
represents the parent node in the tree control in the Bindings panel or the Dynamic Data or 
Dynamic Text dialog box. The 
imageFile property is required.
3 The allowDelete property is optional. If this property is set to false, when the user clicks on 
this node in the Bindings panel, the minus (-) button is disabled. If set to 
true, the minus (-) 
button is enabled. If the property is not defined, the default is 
true. 
4 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. The 
dataSource property is required.
5 The name property is the name of the server behavior that is associated with the data source, if 
one exists. 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. The name property is always defined, but can be an empty 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 Configuration/Shared/Common/Scripts/
DataSourceClass.js.
generateDynamicDataRef()
Availability
Dreamweaver UltraDev 1
Description
Generates the dynamic data object for a child node.
Arguments
sourceName, bindingName
• sourceName is the name of the top-level node that is associated with the child node.
• bindingName is the name of the child node from which you want to generate a dynamic 
data object.
Returns
Dreamweaver expects a string, which can be passed to formatDynamicDataRef() to format it 
before inserting it in a user’s document.










