<?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: Is there a way to run queries via the feature layer api call? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-a-way-to-run-queries-via-the-feature/m-p/1548549#M85887</link>
    <description>&lt;P&gt;What is the intent?&amp;nbsp; To filter the data being displayed on the map, or to query and retrieve a subset of the data that match your query parameters?&lt;BR /&gt;&lt;BR /&gt;Filter data displayed on the Map&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#definitionExpression" target="_self"&gt;FeatureLayer.definitionExpression&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Rretrieve a subset of the data that match your query parameters&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#queryFeatures" target="_self"&gt;FeatureLayer.queryFeatures(...)&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 14 Oct 2024 23:52:14 GMT</pubDate>
    <dc:creator>JohnGrayson</dc:creator>
    <dc:date>2024-10-14T23:52:14Z</dc:date>
    <item>
      <title>Is there a way to run queries via the feature layer api call?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-a-way-to-run-queries-via-the-feature/m-p/1548519#M85886</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;    var livingAtlasLayer2 = new FeatureLayer({
        url: "https://services9.arcgis.com/RHVPKKiFTONKtxq3/arcgis/rest/services/USGS_Seismic_Data_v1/FeatureServer/query?outFields=*&amp;amp;where=Hours_Old%20%3C%20100"
    });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;So I am trying to run queries when creating a feature layer. So far, it just seems to ignore the query altogether and run the layer as normal. Is there a way to make this work using this method? I know normal api calls, this can work, depending on the source.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My intent here is to control the data so that I only get the most recent data to show up.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2024 21:02:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-a-way-to-run-queries-via-the-feature/m-p/1548519#M85886</guid>
      <dc:creator>JonKnight</dc:creator>
      <dc:date>2024-10-14T21:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to run queries via the feature layer api call?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-a-way-to-run-queries-via-the-feature/m-p/1548549#M85887</link>
      <description>&lt;P&gt;What is the intent?&amp;nbsp; To filter the data being displayed on the map, or to query and retrieve a subset of the data that match your query parameters?&lt;BR /&gt;&lt;BR /&gt;Filter data displayed on the Map&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#definitionExpression" target="_self"&gt;FeatureLayer.definitionExpression&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Rretrieve a subset of the data that match your query parameters&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#queryFeatures" target="_self"&gt;FeatureLayer.queryFeatures(...)&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2024 23:52:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-a-way-to-run-queries-via-the-feature/m-p/1548549#M85887</guid>
      <dc:creator>JohnGrayson</dc:creator>
      <dc:date>2024-10-14T23:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to run queries via the feature layer api call?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-a-way-to-run-queries-via-the-feature/m-p/1548731#M85892</link>
      <description>&lt;P&gt;To make a window of the data that is closer to the present, so the data showing is only the more recent data (in this case, only the more recent earthquakes). That's my intent. Whatever accomplishes that intent, that makes it work with the map I've put together using ArcGIS, I am down for. I guess I should have also mentioned, I am using version&amp;nbsp;4.22&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for pointing the way. I am still very new to making all of this work, so this is so very appreciated!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 16:27:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-a-way-to-run-queries-via-the-feature/m-p/1548731#M85892</guid>
      <dc:creator>JonKnight</dc:creator>
      <dc:date>2024-10-15T16:27:07Z</dc:date>
    </item>
  </channel>
</rss>

