MGDwfDataSources Object | 135
Returns
String – Represents the name of the key column that contains the primary
key for the map features.
See Also
setKeyColumn, KeyColumn
setKeyColumn Method
Syntax
boolean setKeyColumn(String column)
Description
Sets the name of the column that contains the primary key for each map
feature on the DWF layer. If this method is successful, it automatically sets
the rebuild flag of the layer to True. For more information on 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 ➤ Docu-
mentation ➤ Autodesk MapGuide Viewer API Help on the Program menu.
For information about using key columns with DWF layers, see “Displaying
Friendly Names and URLs” on page 31.
Parameters
column – String representing the name to assign to the key column.
Returns
boolean – Specifies whether or not the name of the key column is success-
fully set.
True – Indicates that the name of the key column is successfully set.
False – Indicates that the name of the key column is not set.
Error Codes
-1 Busy