Specifications

Data Sources 193
The Data Sources API
addDynamicSource()
Availability
Dreamweaver UltraDev 1
Description
Adds a dynamic data source. Because there is one implementation of this function in each data
source file, Dreamweaver calls the appropriate implementation of the
addDynamicSource()
function when a data source is selected from the plus (+) menu.
For example, for recordsets or commands, Dreamweaver calls
dw.serverBehaviorInspector.popupServerBehavior(), which inserts a new server behavior
into the document. For request, session, and application variables, Dreamweaver displays an
HTML/JavaScript dialog box to collect the name of the variable; the behavior stores the variable
name for future use.
After the
addDynamicSource() function returns, Dreamweaver erases the contents of the data
source tree and calls the
findDynamicSources() and generateDynamicSourceBindings()
functions to repopulate the data source tree.
Returns
Dreamweaver expects nothing.
deleteDynamicSource()
Availability
Dreamweaver UltraDev 1
Description
Called when a Dreamweaver user selects a data source in the tree and clicks the minus (-) button.
For example, in Dreamweaver, if the selection is a recordset or command,
deleteDynamicSource() calls dw.serverBehaviorInspector.deleteServerBehavior(). If
the selection is a request, session, or application variable, the function remembers that the variable
was deleted and does not display it any more. After the
deleteDynamicSource() function
returns, Dreamweaver erases the contents of the data source tree and calls
findDynamicSources() and generateDynamicSourceBindings() to get a fresh list of all the
data sources for the users document.
Arguments
sourceName, bindingName
sourceName is the name of the top-level node to which the child node is associated.
bindingName is the name of the child node.
Returns
Dreamweaver expects nothing.