<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>idea Expose Web Map Feature Table Properties in the Layer Specification in ArcGIS Online Ideas</title>
    <link>https://community.esri.com/t5/arcgis-online-ideas/expose-web-map-feature-table-properties-in-the/idi-p/1288966</link>
    <description>&lt;P&gt;We should have more control over the behavior of the feature table in Web Map Viewer and on the data tab of the item.&amp;nbsp; This would extend beyond defining the column/field order and visibility.&amp;nbsp; This should be defined at the Layer or Table level and should be an extension of what is going on with the pop-up.&lt;BR /&gt;&lt;BR /&gt;Inspecting the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html" target="_blank" rel="noopener"&gt;featureTable Spec&lt;/A&gt; in the ArcGIS JavaScript API provides some details.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;My idea is to add &lt;U&gt;&lt;STRONG&gt;featureTableInfo&lt;/STRONG&gt; &lt;/U&gt;property to the Layer &amp;amp; Table specs where we can then define the following items:&lt;BR /&gt;attachmentsEnabled,&amp;nbsp;columnReorderingEnabled,&amp;nbsp;editingEnabled,&amp;nbsp;hiddenFields,&amp;nbsp;multiSortEnabled,&amp;nbsp;pageSize,&amp;amp;&amp;nbsp;tableTemplate.&amp;nbsp;tableTemplate is where we would define the column order and visibility.&lt;/P&gt;&lt;P&gt;Making this part of the Layer spec makes it portable to any web map and like everything else can be overridden by the web map.&amp;nbsp; Also, extremely important to all the work we do, this would provide a way to do this through automation rather than solely through the UI. It also could provide a way to prevent editing of fields on the data tab of the item.&lt;BR /&gt;&lt;BR /&gt;Column visibility and order are important in the feature table, but so to is preventing access to the feature table all together... or allowing read-only access to the feature table.&amp;nbsp; We want our users collecting data using the Field Maps forms while preventing editing in the feature table because that flow skirts the purpose and logic of the form.&lt;BR /&gt;&lt;BR /&gt;If the&amp;nbsp;&lt;U&gt;&lt;STRONG&gt;featureTableInfo&lt;/STRONG&gt; &lt;/U&gt;property is not provided then the feature table uses default behavior and the field order, visibility, editability properties are inherited from fieldInfos property in popupInfo.&amp;nbsp; If fieldInfos or popupInfo are not provided then&amp;nbsp;field order, visibility, editability properties are inherited from the layerDefinition. This would make introducing the property backwards compatible.&lt;BR /&gt;&lt;BR /&gt;Similar posts:&lt;BR /&gt;&lt;A href="https://community.esri.com/t5/arcgis-online-ideas/allow-quot-save-layer-quot-in-map-viewer-to/idc-p/1283340#M10016" target="_blank" rel="noopener"&gt;Allow "Save layer" in Map Viewer to preserve field order as it did in Map Viewer Classic&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;A href="https://community.esri.com/t5/arcgis-online-ideas/map-viewer-popup-fields-list-add-option-to/idi-p/1229859" target="_blank" rel="noopener"&gt;Map Viewer Popup Fields list - Add option to automatically sort fields other than alphabetically&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/659479"&gt;@Tiff&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/465473"&gt;@ZoevdbAT&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/17874"&gt;@RussRoberts&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Example JSON&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
  "layers": [
    {
      "id": 100011,
      "showLabels": true,
      "refreshInterval": 5,
      "blendMode": "normal",
      "effect": null,
      "featureTableInfo": {
        "attachmentsEnabled": true,
        "columnReorderingEnabled": true,
        "editingEnabled": false,
        "hiddenFields": ["objectid", "field1"],
        "multiSortEnabled": true,
        "pageSize": 100,
        "tableTemplate": {
          "columnTemplates": [
            {
            "type": "field",
            "fieldName": "objectid",
            "label": "OBJECTID",
            "direction": "asc",
            "initialSortPriority": 1,
            "sortable": true,
            "textAlign": "end",
            "visible": false
            },
            {
              "type": "field",
              "fieldName": "date",
              "label": "Service Date",
              "direction": null,
              "initialSortPriority": null,
              "editable": false,
              "required": true,
              "sortable": true,
              "textAlign": "start",
              "visible": true 
            },
            {
              "type": "field",
              "fieldName": "reportno",
              "label": "Service #",
              "direction": "asc",
              "initialSortPriority": 0,
              "editable": true,
              "required": true,
              "sortable": true,
              "textAlign": "center",
              "visible": false
            }
          ]
        }
      },
      "popupInfo": {
        "title": "Example",
        "fieldInfos": [
          {
            "fieldName": "objectid",
            "label": "OBJECTID",
            "visible": false
          },
          {
            "fieldName": "date",
            "format": {
              "dateFormat": "longMonthDayYear",
              "digitSeparator": false
            },
            "isEditable": true,
            "label": "Service Date",
            "visible": true
          },
          {
            "fieldName": "reportno",
            "isEditable": true,
            "label": "Report #",
            "visible": true
          }
        ]
      }
    }
  ]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example feature | attribute table&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JustinReynolds_0-1684102797383.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/70630iCBC2EBF142AE3049/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JustinReynolds_0-1684102797383.png" alt="JustinReynolds_0-1684102797383.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 14 May 2023 22:20:20 GMT</pubDate>
    <dc:creator>JustinReynolds</dc:creator>
    <dc:date>2023-05-14T22:20:20Z</dc:date>
    <item>
      <title>Expose Web Map Feature Table Properties in the Layer Specification</title>
      <link>https://community.esri.com/t5/arcgis-online-ideas/expose-web-map-feature-table-properties-in-the/idi-p/1288966</link>
      <description>&lt;P&gt;We should have more control over the behavior of the feature table in Web Map Viewer and on the data tab of the item.&amp;nbsp; This would extend beyond defining the column/field order and visibility.&amp;nbsp; This should be defined at the Layer or Table level and should be an extension of what is going on with the pop-up.&lt;BR /&gt;&lt;BR /&gt;Inspecting the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html" target="_blank" rel="noopener"&gt;featureTable Spec&lt;/A&gt; in the ArcGIS JavaScript API provides some details.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;My idea is to add &lt;U&gt;&lt;STRONG&gt;featureTableInfo&lt;/STRONG&gt; &lt;/U&gt;property to the Layer &amp;amp; Table specs where we can then define the following items:&lt;BR /&gt;attachmentsEnabled,&amp;nbsp;columnReorderingEnabled,&amp;nbsp;editingEnabled,&amp;nbsp;hiddenFields,&amp;nbsp;multiSortEnabled,&amp;nbsp;pageSize,&amp;amp;&amp;nbsp;tableTemplate.&amp;nbsp;tableTemplate is where we would define the column order and visibility.&lt;/P&gt;&lt;P&gt;Making this part of the Layer spec makes it portable to any web map and like everything else can be overridden by the web map.&amp;nbsp; Also, extremely important to all the work we do, this would provide a way to do this through automation rather than solely through the UI. It also could provide a way to prevent editing of fields on the data tab of the item.&lt;BR /&gt;&lt;BR /&gt;Column visibility and order are important in the feature table, but so to is preventing access to the feature table all together... or allowing read-only access to the feature table.&amp;nbsp; We want our users collecting data using the Field Maps forms while preventing editing in the feature table because that flow skirts the purpose and logic of the form.&lt;BR /&gt;&lt;BR /&gt;If the&amp;nbsp;&lt;U&gt;&lt;STRONG&gt;featureTableInfo&lt;/STRONG&gt; &lt;/U&gt;property is not provided then the feature table uses default behavior and the field order, visibility, editability properties are inherited from fieldInfos property in popupInfo.&amp;nbsp; If fieldInfos or popupInfo are not provided then&amp;nbsp;field order, visibility, editability properties are inherited from the layerDefinition. This would make introducing the property backwards compatible.&lt;BR /&gt;&lt;BR /&gt;Similar posts:&lt;BR /&gt;&lt;A href="https://community.esri.com/t5/arcgis-online-ideas/allow-quot-save-layer-quot-in-map-viewer-to/idc-p/1283340#M10016" target="_blank" rel="noopener"&gt;Allow "Save layer" in Map Viewer to preserve field order as it did in Map Viewer Classic&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;A href="https://community.esri.com/t5/arcgis-online-ideas/map-viewer-popup-fields-list-add-option-to/idi-p/1229859" target="_blank" rel="noopener"&gt;Map Viewer Popup Fields list - Add option to automatically sort fields other than alphabetically&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/659479"&gt;@Tiff&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/465473"&gt;@ZoevdbAT&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/17874"&gt;@RussRoberts&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Example JSON&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
  "layers": [
    {
      "id": 100011,
      "showLabels": true,
      "refreshInterval": 5,
      "blendMode": "normal",
      "effect": null,
      "featureTableInfo": {
        "attachmentsEnabled": true,
        "columnReorderingEnabled": true,
        "editingEnabled": false,
        "hiddenFields": ["objectid", "field1"],
        "multiSortEnabled": true,
        "pageSize": 100,
        "tableTemplate": {
          "columnTemplates": [
            {
            "type": "field",
            "fieldName": "objectid",
            "label": "OBJECTID",
            "direction": "asc",
            "initialSortPriority": 1,
            "sortable": true,
            "textAlign": "end",
            "visible": false
            },
            {
              "type": "field",
              "fieldName": "date",
              "label": "Service Date",
              "direction": null,
              "initialSortPriority": null,
              "editable": false,
              "required": true,
              "sortable": true,
              "textAlign": "start",
              "visible": true 
            },
            {
              "type": "field",
              "fieldName": "reportno",
              "label": "Service #",
              "direction": "asc",
              "initialSortPriority": 0,
              "editable": true,
              "required": true,
              "sortable": true,
              "textAlign": "center",
              "visible": false
            }
          ]
        }
      },
      "popupInfo": {
        "title": "Example",
        "fieldInfos": [
          {
            "fieldName": "objectid",
            "label": "OBJECTID",
            "visible": false
          },
          {
            "fieldName": "date",
            "format": {
              "dateFormat": "longMonthDayYear",
              "digitSeparator": false
            },
            "isEditable": true,
            "label": "Service Date",
            "visible": true
          },
          {
            "fieldName": "reportno",
            "isEditable": true,
            "label": "Report #",
            "visible": true
          }
        ]
      }
    }
  ]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example feature | attribute table&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JustinReynolds_0-1684102797383.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/70630iCBC2EBF142AE3049/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JustinReynolds_0-1684102797383.png" alt="JustinReynolds_0-1684102797383.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 May 2023 22:20:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-ideas/expose-web-map-feature-table-properties-in-the/idi-p/1288966</guid>
      <dc:creator>JustinReynolds</dc:creator>
      <dc:date>2023-05-14T22:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Expose Web Map Feature Table Properties in the Layer Specification</title>
      <link>https://community.esri.com/t5/arcgis-online-ideas/expose-web-map-feature-table-properties-in-the/idc-p/1558270#M11884</link>
      <description>&lt;P&gt;We recently updated the table and web map spec. You can now have the c&lt;SPAN&gt;hanges made to the field visibility, field order, and data sorting from within the attribute table in Map Viewer saved to the web map and layer item to bring a consistent table experience across multiple maps and apps.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2024 20:05:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-ideas/expose-web-map-feature-table-properties-in-the/idc-p/1558270#M11884</guid>
      <dc:creator>RussRoberts</dc:creator>
      <dc:date>2024-11-13T20:05:34Z</dc:date>
    </item>
  </channel>
</rss>

