boolean setDataFile(String dataFile)
Sets the name of the data file from which Autodesk MapGuide Server retrieves data for this layer.
If this method is successful, it automatically sets the layer's rebuild flag to True, causing the application to rebuild the map. setDataFile always rebuilds the map, even if you call it twice in a row with the same file name. To avoid this, you can check to see what the current data file is by calling getDataFile. If the current data file is the same as the data file that you wanted to set, you can choose not to call setDataFile in your script, or you can set the rebuild flag to false.
This method does not apply to Text and Point map layers from OLE DB Data Sources,or to Buffer or Redline map layers.
For Text, Point, Polyline and Polygon map layers from Spatial Data Provider (SDP) Data Sources this method is the same as setSdpFeatureTable. We strongly encourage you to use setSdpFeatureTable instead.
For GIS Design Server layers, this will set the database and theme name, separated by a vertical bar delimiter (for example, configuration name| theme name).
For DWG layers, this will set the Autodesk DWG file. This use of this method is retained for backward compatibility and will be deprecated in the next release. Instead, you should use the MGDwgDataSources.setDwg method.
dataFile - The path and name of the data file. The path of the file is relative to the search path set in Autodesk MapGuide Server Administrator. In this case, this is not the ADL.
boolean - Returns True if successful. Returns False if busy state or does not apply.
-15 (does not apply)
getDataFile, DataFile, getSdpFeatureTable, setSdpFeatureTable, SdpFeatureTable, getDwg, setDwg, Dwg