<?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: Definition Expression Geometry in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/definition-expression-geometry/m-p/627274#M58536</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sean,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; A layer definitionExpression is only for a string that represents a valid SQL statment. You can not use a geometry for a layers definition expression. The only way to possibly do this is to do a QueryTask using the geometry and use the executeForIds and then when you get that result you can build a SQL string from that to feed to the defintionExpression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Oct 2018 15:21:06 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2018-10-17T15:21:06Z</dc:date>
    <item>
      <title>Definition Expression Geometry</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/definition-expression-geometry/m-p/627273#M58535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I apologize if this is a fairly simple question, I'm still learning the JS API.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a feature class that I am dynamically setting altering the definition expression based on user input in a form. Ex by type of building, or size of building. I have also set it up so the user can create a temporary graphics layer to circle an area on the map, from there I would like to include that graphics layer geometry into the definition expression. Where I am struggling is how to pass that temporary geometry into the definition expression.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have a function that builds the def'n expression based on the inputs and I assume in there I would need to format it to add in the temp geometry I'm just not sure how that should look.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice on how best to format a definition expression to take in a geometry would be greatly appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shawn.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2018 15:06:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/definition-expression-geometry/m-p/627273#M58535</guid>
      <dc:creator>ShawnRoberts1</dc:creator>
      <dc:date>2018-10-17T15:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: Definition Expression Geometry</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/definition-expression-geometry/m-p/627274#M58536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sean,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; A layer definitionExpression is only for a string that represents a valid SQL statment. You can not use a geometry for a layers definition expression. The only way to possibly do this is to do a QueryTask using the geometry and use the executeForIds and then when you get that result you can build a SQL string from that to feed to the defintionExpression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2018 15:21:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/definition-expression-geometry/m-p/627274#M58536</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-10-17T15:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Definition Expression Geometry</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/definition-expression-geometry/m-p/627275#M58537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert, thanks for the reply. That should work, it certainty seems like the long way to query for results to send into another expression, but it should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the assistance.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2018 12:56:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/definition-expression-geometry/m-p/627275#M58537</guid>
      <dc:creator>ShawnRoberts1</dc:creator>
      <dc:date>2018-10-18T12:56:44Z</dc:date>
    </item>
  </channel>
</rss>

