<?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 Passing multiple values to setDefinitionExpression in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/passing-multiple-values-to-setdefinitionexpression/m-p/72739#M6557</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there a way to pass multiple values to the setDefinitionExpression method?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried this and it only reads the first value passed to it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;wellFeatureLayer.setDefinitionExpression("welltype='Gas'","welltype='Geothermal'","welltype='Water'" );&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could I pass some sort of array to it? Snippets of code would be greatly appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Aug 2013 22:05:24 GMT</pubDate>
    <dc:creator>KennethRichards</dc:creator>
    <dc:date>2013-08-14T22:05:24Z</dc:date>
    <item>
      <title>Passing multiple values to setDefinitionExpression</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/passing-multiple-values-to-setdefinitionexpression/m-p/72739#M6557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there a way to pass multiple values to the setDefinitionExpression method?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried this and it only reads the first value passed to it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;wellFeatureLayer.setDefinitionExpression("welltype='Gas'","welltype='Geothermal'","welltype='Water'" );&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could I pass some sort of array to it? Snippets of code would be greatly appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2013 22:05:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/passing-multiple-values-to-setdefinitionexpression/m-p/72739#M6557</guid>
      <dc:creator>KennethRichards</dc:creator>
      <dc:date>2013-08-14T22:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: Passing multiple values to setDefinitionExpression</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/passing-multiple-values-to-setdefinitionexpression/m-p/72740#M6558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ah, the wonders of complex &lt;/SPAN&gt;&lt;A href="http://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer/3/query?where=STATE_NAME+%3D+%27California%27+OR+STATE_NAME+%3D+%27Nevada%27&amp;amp;text=&amp;amp;objectIds=&amp;amp;time=&amp;amp;geometry=&amp;amp;geometryType=esriGeometryEnvelope&amp;amp;inSR=&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;relationParam=&amp;amp;outFields=&amp;amp;returnGeometry=true&amp;amp;maxAllowableOffset=&amp;amp;geometryPrecision=&amp;amp;outSR=&amp;amp;returnIdsOnly=false&amp;amp;returnCountOnly=false&amp;amp;orderByFields=&amp;amp;groupByFieldsForStatistics=&amp;amp;outStatistics=&amp;amp;returnZ=false&amp;amp;returnM=false&amp;amp;gdbVersion=&amp;amp;returnDistinctValues=false&amp;amp;f=html" rel="nofollow noopener noreferrer" target="_blank"&gt;SQL&lt;/A&gt;&lt;SPAN&gt; expressions..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
"FIELD_NAME = 'value 1' OR FIELD_NAME = 'value 2'"
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:49:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/passing-multiple-values-to-setdefinitionexpression/m-p/72740#M6558</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2021-12-10T22:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: Passing multiple values to setDefinitionExpression</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/passing-multiple-values-to-setdefinitionexpression/m-p/72741#M6559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If the definition expression is for one field, use IN operator then. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;wellFeatureLayer.setDefinitionExpression("welltype IN ('Gas','Geothermal','Water')");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Refer to &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.1/index.html#//00s500000033000000" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//00s500000033000000&lt;/A&gt;&lt;SPAN&gt; for more details.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Aug 2013 13:46:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/passing-multiple-values-to-setdefinitionexpression/m-p/72741#M6559</guid>
      <dc:creator>JasonZou</dc:creator>
      <dc:date>2013-08-15T13:46:18Z</dc:date>
    </item>
  </channel>
</rss>

