User Guide
328 Chapter 16: Dynamic Documents
dreamweaver.serverComponents.refresh()
Availability
Dreamweaver MX.
Description
Refreshes the view of the Components tree.
Arguments
None.
Returns
Nothing.
Data source functions
Data source files are stored in the Configuration/DataSources folder. Each server model has its
own folder: ASP.Net/C#, ASP.Net/VisualBasic, ASP/JavaScript, ASP/VBScript, ColdFusion, JSP,
and PHP/MySQL. Each server model subfolder contains HTML and EDML files that are
associated with the data sources for that server model.
For more information about using data sources in Dreamweaver, see “Data Sources” in
Extending Dreamweaver.
dreamweaver.dbi.getDataSources
Availability
Dreamweaver UltraDev 4.
Description
Calls the findDynamicSources() function for each file in the Configuration/DataSources folder.
You can use this function to generate a list of all the data sources in the user’s document. This
function iterates through all the files in the Configuration/DataSources folder, calls the
findDynamicSources() function in each file, concatenates all the returned arrays, and returns
the concatenated array of data sources.
Arguments
None.
Returns
An array that contains a concatenated list of all the data sources in the user’s document. Each
element in the array is an object, and each object has the following properties:
• The title property is the label string that appears to the right of the icon for each parent
node. The title property is always defined.
• The imageFile property is the path of a file that contains the icon (a GIF image) that
represents the parent node in Dynamic Data or the Dynamic Text dialog box or in the
Bindings panel. The
imageFile property is always defined.
000_DW_API_Print.book Page 328 Wednesday, August 20, 2003 9:14 AM