popupElement relationship

Provides the ability to navigate and view related records from a layer or table associated within the pop-up.

Referenced by: popupElement

Properties

Property Details
description A string that describes the element in detail.
displayCount An integer that indicates the maximum number of records to display.
displayType A string that defines how the related records should be displayed.
Valid value of this property list
orderByFields[] Array of orderByField objects indicating the display order for the related records, and whether they should be sorted in ascending 'asc' or descending 'desc' order. If orderByFields is not provided, the popupElement will display whatever is specified directly in the popupInfo.relatedRecordsInfo.orderByFields property.
relationshipId The id of the relationship as defined in the feature layer definition
title A string value indicating what the element represents.
type String value indicating which type of element to use.
Valid value of this property relationship

Example

{
  "description": "Inspection Reports",
  "displayCount": 3,
  "displayType": "list",
  "title": "Inspections",
  "orderByFields": [
    {
      "field": "inspectionDate",
      "order": "desc"
    }
  ],
  "relationshipId": 0,
  "type": "relationship"
}

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