attributeTableInfo

Defines the look and feel of the data table when showing data in a tabular format.

Referenced by: CSV Layer (CSV), Feature Layer (ArcGISFeatureLayer), Footprint Layer (FootprintLayer), GeoJSON Layer (GeoJSON), Subtype Layer (SubtypeLayer), Subtype Table (SubtypeTable), table

Properties

Property Details
attributeTableElements[] An array of attributeTableElement objects that represent an ordered list of elements that represent various types of tabular content.
Array of items of the following types:
orderByFields[] Array of orderByField objects indicating the row sort order, and whether they should be sorted in ascending 'asc' or descending 'desc' order.

Example

{
  "attributeTableElements": [
    {
      "fieldName": "inspectionDate",
      "type": "field"
    },
    {
      "fieldName": "inspectionType",
      "type": "field"
    },
    {
      "fieldName": "inspectedBy",
      "type": "field"
    },
    {
      "label": "Address Information",
      "type": "group",
      "attributeTableElements": [
        {
          "fieldName": "StreetNumber",
          "type": "field"
        },
        {
          "fieldName": "StreetName",
          "type": "field"
        },
        {
          "fieldName": "City",
          "type": "field"
        }
      ]
    },
    {
      "label": "Photos and Files",
      "description": "Click to get more details.",
      "type": "attachment",
      "displayType": "auto"
    },
    {
      "label": "Inspections",
      "description": "Click to browse previous inspections",
      "type": "relationship",
      "relationshipId": 0
    }
  ],
  "orderByFields": [
    {
      "field": "inspectionDate",
      "order": "desc"
    }
  ]
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close