<?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: Using featureLayer.selectFeatures with a query string instead of geometry in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-featurelayer-selectfeatures-with-a-query/m-p/490325#M45565</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Forgot to mention that I do declare a selectionSymbol when the featureLayer is defined, earlier in the code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;pointsLayer.setSelectionSymbol(esri.symbol.SimpleMarkerSymbol().setColor("red"));&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Nov 2012 12:55:57 GMT</pubDate>
    <dc:creator>AndrewBrown1</dc:creator>
    <dc:date>2012-11-29T12:55:57Z</dc:date>
    <item>
      <title>Using featureLayer.selectFeatures with a query string instead of geometry</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-featurelayer-selectfeatures-with-a-query/m-p/490324#M45564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to select points on my featureLayer using a query.where string statement instead of providing the geometry of a drawn feature. Is this possible?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var query4 = new esri.tasks.Query();
&amp;nbsp;&amp;nbsp;&amp;nbsp; query4.returnGeometry = false;
&amp;nbsp;&amp;nbsp;&amp;nbsp; //query4.outFields = ["STA_NAME"];
&amp;nbsp;&amp;nbsp;&amp;nbsp; query4.where = "[ID_User] = " + userID + " and [NEWCHEMICAL] = '" + chemical + "' and [STD_ANATYPE] = '" + chem_type + "'";
&amp;nbsp;&amp;nbsp;&amp;nbsp; pointsLayer.selectFeatures(query4, esri.layers.FeatureLayer.SELECTION_NEW);&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Currently, I receive duplicate errors: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Error {code: 400, message: "Unable to complete operation.", details: Array[0], log: undefined, _ssl: undefined}&lt;BR /&gt; &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 21:34:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-featurelayer-selectfeatures-with-a-query/m-p/490324#M45564</guid>
      <dc:creator>AndrewBrown1</dc:creator>
      <dc:date>2021-12-11T21:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: Using featureLayer.selectFeatures with a query string instead of geometry</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-featurelayer-selectfeatures-with-a-query/m-p/490325#M45565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Forgot to mention that I do declare a selectionSymbol when the featureLayer is defined, earlier in the code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;pointsLayer.setSelectionSymbol(esri.symbol.SimpleMarkerSymbol().setColor("red"));&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 12:55:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-featurelayer-selectfeatures-with-a-query/m-p/490325#M45565</guid>
      <dc:creator>AndrewBrown1</dc:creator>
      <dc:date>2012-11-29T12:55:57Z</dc:date>
    </item>
  </channel>
</rss>

