<?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 Re: Displaying query results in a table in 4.20 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/displaying-query-results-in-a-table-in-4-20/m-p/1099495#M74697</link>
    <description>&lt;P&gt;I believe that ESRI has this code sample that does what you're trying to accomplish.&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/highlight-features-by-geometry/" target="_blank"&gt;Select features by rectangle | ArcGIS API for JavaScript&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Sep 2021 18:31:53 GMT</pubDate>
    <dc:creator>ChrisBoland</dc:creator>
    <dc:date>2021-09-17T18:31:53Z</dc:date>
    <item>
      <title>Displaying query results in a table in 4.20</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/displaying-query-results-in-a-table-in-4-20/m-p/1099487#M74696</link>
      <description>&lt;P&gt;I am trying to figure out if there is a way to display query results in a table. FeatureTable would be perfect but I get the impression that it doesn't work with a GraphicsLayer? I perform a query and then add the results to a Graphics Layer so the results are the only points displayed on the map. The popuptemplate works great for displaying information on the individual records when clicked but I would also like to allow the user to have a table visible so they can scroll through the results&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2021 18:19:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/displaying-query-results-in-a-table-in-4-20/m-p/1099487#M74696</guid>
      <dc:creator>luckachi</dc:creator>
      <dc:date>2021-09-17T18:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying query results in a table in 4.20</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/displaying-query-results-in-a-table-in-4-20/m-p/1099495#M74697</link>
      <description>&lt;P&gt;I believe that ESRI has this code sample that does what you're trying to accomplish.&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/highlight-features-by-geometry/" target="_blank"&gt;Select features by rectangle | ArcGIS API for JavaScript&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2021 18:31:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/displaying-query-results-in-a-table-in-4-20/m-p/1099495#M74697</guid>
      <dc:creator>ChrisBoland</dc:creator>
      <dc:date>2021-09-17T18:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying query results in a table in 4.20</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/displaying-query-results-in-a-table-in-4-20/m-p/1099913#M74715</link>
      <description>&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;I am having some trouble breaking down this example. I added&amp;nbsp; featureTable.selectRows(prjResults); to my getResults function. It successfully selects the query results in the table based on the item I select in the drop down but I am not quite sure how to go about just showing those selected rows in the table. I took some lines of code from the example but it doesn't seem to be doing anything.&lt;/P&gt;&lt;P&gt;This is the function that currently selects the query results in the table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;        /* Called each time promise is resolved.
        Loop through each results and assign symbol and PopupTemplate */
        function getResults(response) {
          var prjResults = response.features.map(function (feature) {
            feature.symbol = sym;
            feature.popupTemplate = popupTemplate;
            return feature;
          });
          resultsLayer.addMany(prjResults);

          //select rows in featuretable
          featureTable.selectRows(prjResults);


          /* Zoom to Extent */
          var AOI = response.features;
          view.goTo(AOI);
        }&lt;/LI-CODE&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>Tue, 21 Sep 2021 18:52:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/displaying-query-results-in-a-table-in-4-20/m-p/1099913#M74715</guid>
      <dc:creator>luckachi</dc:creator>
      <dc:date>2021-09-21T18:52:50Z</dc:date>
    </item>
  </channel>
</rss>

