Specifications
Server Behaviors 161
Value
The exact name (without a path) of any server behavior HTML file within a Configuration/
ServerBehaviors folder, as shown in the following example:
<group serverBehavior="redirectIfEmpty.htm">
Attribute: dataSource
Description
This advanced feature supports new data sources that can be added to Dreamweaver.
Multiple versions of a server behavior can differ, depending on which data source you use. For
example, the Repeat Region Server Behavior is designed for the standard Recordset.htm data
source. If Dreamweaver is extended to support a new type of data source (such as a COM object),
you can set
dataSource="COM.htm" in a Group file with a different implementation of Repeat
Region. The Repeat Region Server Behavior then applies the new implementation of Repeat
Region if the new data source is selected.
Parent
group
Type
Attribute.
Required
No.
Value
The exact name of a data source file within a Configuration/DataSources folder, as shown in the
following example:
<group serverBehavior="Repeat Region.htm" ¬
dataSource="myCOMdataSource.htm">
This group defines a new implementation of Repeat Region to use if you use the COM data
source. In
applyServerBehaviors(), you can indicate that this group should be applied by
setting the
MM_dataSource property on the parameter object, as shown in the following example:
function applyServerBehavior(ssRec) {
var paramObj = new Object();
paramObj.rs = getComObjectName();
paramObj.MM_dataSource = "myCOMdataSource.htm";
dwscripts.applySB(paramObj, sbObj);
}
Attribute: subType
Description
This advanced feature supports multiple implementations of a server behavior.
Multiple versions of a server behavior might differ, depending on user selection. When a server
behavior is applied, but multiple group files are relevant, the correct group file can be selected by
passing in a
subType value. The group with that specific subType is applied.
Parent
group