A SERVICE OF

logo

130 | Chapter 8 DWF API Additions
Returns
String – Represents the name of the DWF data source.
See Also
setDataSource, DataSource
setDataSource Method
Syntax
boolean setDataSource(String dataSource)
Description
Sets the name of the DWF data source that establishes a connection between
Autodesk MapGuide Server and the Autodesk Data Link (ADL) data provider.
If this method is successful, it sets the rebuild flag of the layer to True. For
more informaion about the rebuild flag, see setRebuild in the Autodesk
MapGuide Viewer API Help. You can access the MapGuide Viewer API Help
by clicking Autodesk MapGuide 6.5 Documentation Autodesk
MapGuide Viewer API Help on the Program menu.
When you change the DWF data source, you may also need to update several
other properties. These properties include: Dwf, SheetName, KeyColumn,
KeyColumnType, NameColumn, UrlColumn, and LayerFilter.
For more information about DWF data sources, see “Setting Up a Data Source
for DWF Files” on page 25.
Parameters
dataSource – String representing the name of the data source.
Returns
boolean – Specifies whether of not the data source is successfully set.
True – Indicates that the data source is successfully set.
False – Indicates that the data source is not set.