<?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 FeatureLayer::selectFeatures - query contains one or more unsupported parameters in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-selectfeatures-query-contains-one-or/m-p/685913#M63847</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am building on my earlier post where I created a feature layer on the client from a Feature Collection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to be able to select feature(s) from the layer with a where clause.&amp;nbsp; I am able to select them with featureLayer.selectFeatures -- if I omit the where clause and use only objectIds.&amp;nbsp; If I try to use a where clause, I get an error that my query contains one or more unsupported parameters. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This code snippet illustrates the issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var query = new Query();
query.where = "bl_id = 'B-US-MA-1001'";
//query.objectIds = [0];
featureLayer.selectFeatures(query, FeatureLayer.SELECTION_NEW);&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This jsFiddle demonstrates the behavior:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://jsfiddle.net/gregKnight66/mmhqqan6/14/" title="http://jsfiddle.net/gregKnight66/mmhqqan6/14/" rel="nofollow noopener noreferrer" target="_blank"&gt;Edit fiddle - JSFiddle&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;What am I missing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS.&amp;nbsp; I might add that using the query.where approach works just fine when I have a feature layer that was created from an ArcGIS source.&amp;nbsp; The real issue arises when I build the feature layer on the client from a Feature Collection.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 04:51:13 GMT</pubDate>
    <dc:creator>GregKnight</dc:creator>
    <dc:date>2021-12-12T04:51:13Z</dc:date>
    <item>
      <title>FeatureLayer::selectFeatures - query contains one or more unsupported parameters</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-selectfeatures-query-contains-one-or/m-p/685913#M63847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am building on my earlier post where I created a feature layer on the client from a Feature Collection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to be able to select feature(s) from the layer with a where clause.&amp;nbsp; I am able to select them with featureLayer.selectFeatures -- if I omit the where clause and use only objectIds.&amp;nbsp; If I try to use a where clause, I get an error that my query contains one or more unsupported parameters. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This code snippet illustrates the issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var query = new Query();
query.where = "bl_id = 'B-US-MA-1001'";
//query.objectIds = [0];
featureLayer.selectFeatures(query, FeatureLayer.SELECTION_NEW);&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This jsFiddle demonstrates the behavior:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://jsfiddle.net/gregKnight66/mmhqqan6/14/" title="http://jsfiddle.net/gregKnight66/mmhqqan6/14/" rel="nofollow noopener noreferrer" target="_blank"&gt;Edit fiddle - JSFiddle&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;What am I missing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS.&amp;nbsp; I might add that using the query.where approach works just fine when I have a feature layer that was created from an ArcGIS source.&amp;nbsp; The real issue arises when I build the feature layer on the client from a Feature Collection.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:51:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-selectfeatures-query-contains-one-or/m-p/685913#M63847</guid>
      <dc:creator>GregKnight</dc:creator>
      <dc:date>2021-12-12T04:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer::selectFeatures - query contains one or more unsupported parameters</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-selectfeatures-query-contains-one-or/m-p/685914#M63848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Argh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Does not support queries that need to be performed on the server, e.g. queries with a where clause or non-extent based spatial queries.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sadness.&amp;nbsp; Guess I'll need to tackle this another way...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 18:28:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-selectfeatures-query-contains-one-or/m-p/685914#M63848</guid>
      <dc:creator>GregKnight</dc:creator>
      <dc:date>2015-10-05T18:28:55Z</dc:date>
    </item>
  </channel>
</rss>

