<?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 appending variables in a query in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/appending-variables-in-a-query/m-p/130975#M3088</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I can create a query with mulitple variables just fine if I hardcode all of them...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;esri:Query id="query"&amp;nbsp; where="STATE_NAME = 'Texas' and pop1990 &amp;amp;lt; 1000000" text="{qCityName.text}" returnGeometry="true" outSpatialReference="{map.spatialReference}"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BUT, I want to use the users input of State value and can't figure out how to append it, I have tried..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:Query id="query"&amp;nbsp; where="STATE_NAME = '" + "{qStateName.text}" + "' and pop1990 &amp;amp;lt; 1000000"&amp;nbsp; returnGeometry="true" outSpatialReference="{map.spatialReference}"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:Query id="query"&amp;nbsp; where="STATE_NAME = '"&amp;nbsp; &amp;amp; "{qStateName.text}" &amp;amp; "' and pop1990 &amp;amp;lt; 1000000"&amp;nbsp; returnGeometry="true" outSpatialReference="{map.spatialReference}"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but get syntax errors. Any ideas???&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Jul 2010 17:51:09 GMT</pubDate>
    <dc:creator>DebbieJamieson</dc:creator>
    <dc:date>2010-07-29T17:51:09Z</dc:date>
    <item>
      <title>appending variables in a query</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/appending-variables-in-a-query/m-p/130975#M3088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I can create a query with mulitple variables just fine if I hardcode all of them...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;esri:Query id="query"&amp;nbsp; where="STATE_NAME = 'Texas' and pop1990 &amp;amp;lt; 1000000" text="{qCityName.text}" returnGeometry="true" outSpatialReference="{map.spatialReference}"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BUT, I want to use the users input of State value and can't figure out how to append it, I have tried..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:Query id="query"&amp;nbsp; where="STATE_NAME = '" + "{qStateName.text}" + "' and pop1990 &amp;amp;lt; 1000000"&amp;nbsp; returnGeometry="true" outSpatialReference="{map.spatialReference}"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:Query id="query"&amp;nbsp; where="STATE_NAME = '"&amp;nbsp; &amp;amp; "{qStateName.text}" &amp;amp; "' and pop1990 &amp;amp;lt; 1000000"&amp;nbsp; returnGeometry="true" outSpatialReference="{map.spatialReference}"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but get syntax errors. Any ideas???&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jul 2010 17:51:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/appending-variables-in-a-query/m-p/130975#M3088</guid>
      <dc:creator>DebbieJamieson</dc:creator>
      <dc:date>2010-07-29T17:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: appending variables in a query</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/appending-variables-in-a-query/m-p/130976#M3089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you're using the where clause, I don't think you need the text property. It's not your error though.&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;&amp;lt;esri:Query id="query" where="STATE_NAME = '{qStateName.text}' and pop1990 &amp;amp;lt; 1000000" returnGeometry="true" outSpatialReference="{map.spatialReference}"&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;FlashBuilder makes it look like you're passing regular text, but you're really binding it to the input.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jul 2010 18:06:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/appending-variables-in-a-query/m-p/130976#M3089</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2010-07-29T18:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: appending variables in a query</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/appending-variables-in-a-query/m-p/130977#M3090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I can create a query with mulitple variables just fine if I hardcode all of them...&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;esri:Query id="query"&amp;nbsp; where="STATE_NAME = 'Texas' and pop1990 &amp;amp;lt; 1000000" text="{qCityName.text}" returnGeometry="true" outSpatialReference="{map.spatialReference}"&amp;gt;&lt;BR /&gt;&lt;BR /&gt;BUT, I want to use the users input of State value and can't figure out how to append it, I have tried..&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:Query id="query"&amp;nbsp; where="STATE_NAME = '" + "{qStateName.text}" + "' and pop1990 &amp;amp;lt; 1000000"&amp;nbsp; returnGeometry="true" outSpatialReference="{map.spatialReference}"&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:Query id="query"&amp;nbsp; where="STATE_NAME = '"&amp;nbsp; &amp;amp; "{qStateName.text}" &amp;amp; "' and pop1990 &amp;amp;lt; 1000000"&amp;nbsp; returnGeometry="true" outSpatialReference="{map.spatialReference}"&amp;gt;&lt;BR /&gt;&lt;BR /&gt;but get syntax errors. Any ideas???&lt;BR /&gt;thanks&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I believe the issue is in your where clause. The whole where statement should be a single text string:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;where="'STATE_NAME = ' + {qStateName.text} + ' and pop1990 &amp;amp;lt; 1000000'"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try that.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jul 2010 18:14:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/appending-variables-in-a-query/m-p/130977#M3090</guid>
      <dc:creator>EokNgo</dc:creator>
      <dc:date>2010-07-29T18:14:52Z</dc:date>
    </item>
  </channel>
</rss>

