A subtype table represents a subtype defined in a feature service table. It has its own display and editing properties, and can exist only as a child of a subtype group table.

Referenced by: Subtype Group Table (SubtypeGroupTable)

Properties

PropertyDetails
attributeTableInfoAn attributeTableInfo object defining how the data will be presented in tabular format.
charts[]An array of chart objects representing charts associated with the subtype table.
disablePopupIndicates whether a client should ignore popups defined in this table
enableEditingIndicates whether a client should allow feature editing for this table. Applicable only if the table has editing capability.
formInfoA formInfo object defining the content of the form when you are editing a feature.
idA unique identifying string for the table.
layerDefinitionA layerDefinition object defining the attribute schema and other related information specific to the table.
See layerDefinition properties table.
popupInfoA popupInfo object defining the content of popup window when you click a feature on the map.
subtypeCodeThe feature subtype code identifying the table. Used with Subtype Group Tables.
titleA user-friendly string title for the table that can be used in a table of contents.

layerDefinition properties

PropertyDetails
fieldConfigurations[]An array of fieldConfiguration objects that define configuration for fields within a layer, including how to format date, time and number fields. Support for fieldConfigurations is currently limited to feature service-backed feature layers, oriented imagery layers, catalog footprint layers, subtype layers, subtype tables and tables. Support for additional layer types is planned for future releases.
fieldOverrides[]The layer-specific overrides of field properties. Used by SubtypeGroupLayer to modify field information for each subtype. Any field missing from this array should be hidden.
templates[]A property of the layer definition when there are no types defined; otherwise, templates are defined as properties of the types.

Example

{
"id": "02c7fe67e3c8422189eb497ae45e13dd",
"title": "Insectivora",
"layerDefinition": {
"templates": [
{
"name": "Muridae",
"prototype": {
"attributes": {
"FAMILY": 11,
"ORDER": 6
}
}
},
{
"name": "Dasyproctidae",
"prototype": {
"attributes": {
"FAMILY": 7,
"ORDER": 6
}
}
},
{
"name": "Dipodidae",
"prototype": {
"attributes": {
"FAMILY": 8,
"ORDER": 6
}
}
}
],
"fieldOverrides": [
{
"name": "OBJECTID",
"alias": "OBJECTID",
"editable": false
},
{
"name": "ORDER",
"alias": "ORDER",
"editable": true
},
{
"name": "FAMILY",
"alias": "FAMILY",
"editable": true
},
{
"name": "GENUS",
"alias": "GENUS",
"editable": true
},
{
"name": "GENUS_COMMON",
"alias": "GENUS_COMMON",
"editable": true
},
{
"name": "RECORDED_DATE",
"alias": "RECORDED_DATE",
"editable": true
},
{
"name": "COUNTRY",
"alias": "COUNTRY",
"editable": true
},
{
"name": "SPECIES_NUM",
"alias": "SPECIES_NUM",
"editable": true
}
]
},
"subtypeCode": 6,
"popupInfo": {
"title": "{ORDER}"
}
}