<?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>topic In FeatureTable filtered by definition query get ObjectIds of current page in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/in-featuretable-filtered-by-definition-query-get/m-p/1575673#M86383</link>
    <description>&lt;P&gt;Some new tough nut here.&lt;/P&gt;&lt;P&gt;I want to receive the object ids of only those features which are currently shown on the current page of the feature table which may is filtered due to a defintion query on the layer:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;A Layer shows some features in the map.&lt;/LI&gt;&lt;LI&gt;We select some features by geometry.&lt;/LI&gt;&lt;LI&gt;Their object ids + their layer are sent to a FeatureTable (via featureTableProperties) showing them&lt;/LI&gt;&lt;LI&gt;Afterwards a definitionQuery is applied to the layer which also reduces the features shown in the table&lt;/LI&gt;&lt;LI&gt;Now I would like to get all objectIds shown in the FeatureTable (of the current page).&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I find a size attribute telling me how many are shown right now, but I dont find a reference to the features itself.&lt;/P&gt;&lt;P&gt;I tried to ask AI first but that did not help much. It told me about grid.rows and .store and a function to check if a given features is visible in the table. Nothing which was visible for me while debugging.&lt;/P&gt;&lt;P&gt;I have access to the current FeatureTable instance and to the unfiltered objectIds.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const featureTable = this.featureTable();
const allIds = this.allObjectIds(); // original list of object ids sent via properties on widget generation
const allIds2 = featureTable.objectIds(); // always results to the same ids as 'allIds'
const sizeShownItems = featureTable.size; // amount of items only shown
const shownItems = ???; // this is what I want&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here I am stuck.&lt;/P&gt;&lt;P&gt;If helpful the way I create the table (simple default I guess):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const widget = new FeatureTable({
   ...featureTableProperties,
   container: this.tableElementRef?.nativeElement,
   view: mapView,
   visibleElements: {
      menu: true,
      menuItems: {
         refreshData: false,
         clearSelection: false,
         selectedRecordsShowSelectedToggle: false,
         zoomToSelection: false,
         toggleColumns: true
      }
   }
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jan 2025 00:57:56 GMT</pubDate>
    <dc:creator>SebastianKrings</dc:creator>
    <dc:date>2025-01-15T00:57:56Z</dc:date>
    <item>
      <title>In FeatureTable filtered by definition query get ObjectIds of current page</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/in-featuretable-filtered-by-definition-query-get/m-p/1575673#M86383</link>
      <description>&lt;P&gt;Some new tough nut here.&lt;/P&gt;&lt;P&gt;I want to receive the object ids of only those features which are currently shown on the current page of the feature table which may is filtered due to a defintion query on the layer:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;A Layer shows some features in the map.&lt;/LI&gt;&lt;LI&gt;We select some features by geometry.&lt;/LI&gt;&lt;LI&gt;Their object ids + their layer are sent to a FeatureTable (via featureTableProperties) showing them&lt;/LI&gt;&lt;LI&gt;Afterwards a definitionQuery is applied to the layer which also reduces the features shown in the table&lt;/LI&gt;&lt;LI&gt;Now I would like to get all objectIds shown in the FeatureTable (of the current page).&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I find a size attribute telling me how many are shown right now, but I dont find a reference to the features itself.&lt;/P&gt;&lt;P&gt;I tried to ask AI first but that did not help much. It told me about grid.rows and .store and a function to check if a given features is visible in the table. Nothing which was visible for me while debugging.&lt;/P&gt;&lt;P&gt;I have access to the current FeatureTable instance and to the unfiltered objectIds.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const featureTable = this.featureTable();
const allIds = this.allObjectIds(); // original list of object ids sent via properties on widget generation
const allIds2 = featureTable.objectIds(); // always results to the same ids as 'allIds'
const sizeShownItems = featureTable.size; // amount of items only shown
const shownItems = ???; // this is what I want&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here I am stuck.&lt;/P&gt;&lt;P&gt;If helpful the way I create the table (simple default I guess):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const widget = new FeatureTable({
   ...featureTableProperties,
   container: this.tableElementRef?.nativeElement,
   view: mapView,
   visibleElements: {
      menu: true,
      menuItems: {
         refreshData: false,
         clearSelection: false,
         selectedRecordsShowSelectedToggle: false,
         zoomToSelection: false,
         toggleColumns: true
      }
   }
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2025 00:57:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/in-featuretable-filtered-by-definition-query-get/m-p/1575673#M86383</guid>
      <dc:creator>SebastianKrings</dc:creator>
      <dc:date>2025-01-15T00:57:56Z</dc:date>
    </item>
  </channel>
</rss>

