<?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: syntax for query using variable name in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/syntax-for-query-using-variable-name/m-p/841486#M3555</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Smooth and straight. I googled, searched ... found stuff like %s, var ... but did not test the "Esri way" &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &amp;nbsp;Thanks!&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Jun 2017 19:47:09 GMT</pubDate>
    <dc:creator>GünterDörffel</dc:creator>
    <dc:date>2017-06-22T19:47:09Z</dc:date>
    <item>
      <title>syntax for query using variable name</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/syntax-for-query-using-variable-name/m-p/841484#M3553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR data-jive-statusinputadd="true" data-jive-truncation-flag="true" /&gt;I searched for the proper syntax to do a query like this ...&lt;BR data-jive-statusinputadd="true" data-jive-truncation-flag="true" /&gt;xxLayer.query(where = 'objectid &amp;gt; 0')&lt;BR data-jive-statusinputadd="true" data-jive-truncation-flag="true" /&gt;but instead of giving it the value (here 0) this should be a variable&lt;BR data-jive-statusinputadd="true" data-jive-truncation-flag="true" /&gt;How is that done?&lt;BR data-jive-statusinputadd="true" data-jive-truncation-flag="true" /&gt;&lt;BR data-jive-statusinputadd="true" data-jive-truncation-flag="true" /&gt;Thanks Günter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2017 15:46:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/syntax-for-query-using-variable-name/m-p/841484#M3553</guid>
      <dc:creator>GünterDörffel</dc:creator>
      <dc:date>2017-06-22T15:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: syntax for query using variable name</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/syntax-for-query-using-variable-name/m-p/841485#M3554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you try&amp;nbsp;&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;query_result &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; FeatureLayer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;query&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;where &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'objectId &amp;gt; '&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; str&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;layer_id&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2017 17:31:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/syntax-for-query-using-variable-name/m-p/841485#M3554</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2017-06-22T17:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: syntax for query using variable name</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/syntax-for-query-using-variable-name/m-p/841486#M3555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Smooth and straight. I googled, searched ... found stuff like %s, var ... but did not test the "Esri way" &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &amp;nbsp;Thanks!&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2017 19:47:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/syntax-for-query-using-variable-name/m-p/841486#M3555</guid>
      <dc:creator>GünterDörffel</dc:creator>
      <dc:date>2017-06-22T19:47:09Z</dc:date>
    </item>
  </channel>
</rss>

