generateDynamicSourceBindings()
Availability
Adobe Dreamweaver UltraDev 1.
Description
This function returns the children of a top-level node.
Arguments
sourceName
- The
sourceNameargument is the name of the top-level node whose children you want to return.
Returns
Adobe Dreamweaver expects an array of JavaScript objects where each object can have as many as four properties, which are described in the following list:
- The
titleproperty is the label string that appears on the right of the icon for each parent node. This property is required. - The
allowDeleteproperty is optional. If this property is set to the valuefalse, when the user clicks this node in the Bindings panel, the Minus (-) button is disabled. If this property is set to the valuetrue, the Minus (-) button is enabled. If the property is not defined, the default is the valuetrue. - The
dataSourceproperty is the simple name of the file in which thefindDynamicSources()function is defined. For example, thefindDynamicSources()function in the Session.htm file, which is located in the Configuration/DataSources/ASP_Js folder, sets thedataSourceproperty tosession.htm. This property is required. - The
nameproperty 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 name itrsAuthors, thenameproperty must equalrsAuthors. 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 the DataSourceClass.js file, which is located in the Configuration/Shared/Common/Scripts folder.