A SERVICE OF

logo

138 | Chapter 8 DWF API Additions
setKeyColumnType Method
Syntax
boolean setKeyColumnType(String keyColumnType)
Description
Sets the data type of the key column. You can set the data type to one of the
following:
String
Numeric
Decimal
Integer
SmallInt
Float
Double
Date
Time
TimeStamp
Boolean
UnsignedInteger
UnsignedSmallInt
Byte
UnsignedByte
It is recommended that you do not use Float or Double data types because of
the inherent inaccuracies in comparing them.
If this property is modified successfully, 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 Documentation
Autodesk MapGuide Viewer API Help on the Program menu.
Note This method is not case-sensitive.
For information about using key columns with DWF layers, see “Displaying
Friendly Names and URLs” on page 31.
Parameters
keyColumnType – String representing the data type to assign to the key
column.