<?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: Problem with query expression when using a File geodatabase in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/problem-with-query-expression-when-using-a-file/m-p/426924#M9985</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ionara,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; You have to tell the SQL to capitalize the company field data and the users input to resolve the case sensitivity.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Jan 2013 23:43:15 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2013-01-18T23:43:15Z</dc:date>
    <item>
      <title>Problem with query expression when using a File geodatabase</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/problem-with-query-expression-when-using-a-file/m-p/426916#M9977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a web map app with a search tool with one text input for company's name, one dropdown menu for county and two drop down menus for industry and industry type. I previously had my geodatabase in a SDE environment but after upgrading to ArcGIS Server 10.1, I decided to use a file geodatabase because it is easier. However my query expressionf for the company is not working properly anymore.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the code snippet:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt; var expr:String = ""; &amp;nbsp; if (qText.text != "") {&amp;nbsp; // for the text with apostrophe be recognized on the query qText.text = qText.text.replace("'","''") expr = "Company Like '%" + qText.text + "%' AND Status_not = ' '" ; &amp;nbsp; } &lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, do you guys have any idea in how to make this work again with a file geodatabase?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I search for "tem", it does not bring me the companies that start with "Tem" anymore, just the ones that have tem somewhere in their name. If I search for Caesar's or Cae, it does not bring me the company with that name, but if I search for aes, it will bring that company and others that have aes somewhere in their name. Thank you for any help!!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2013 15:37:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/problem-with-query-expression-when-using-a-file/m-p/426916#M9977</guid>
      <dc:creator>ionarawilson1</dc:creator>
      <dc:date>2013-01-18T15:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with query expression when using a File geodatabase</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/problem-with-query-expression-when-using-a-file/m-p/426917#M9978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ionara,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think the wildcard for file geodatabases is * not %, have you tried that,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anthony&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2013 15:48:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/problem-with-query-expression-when-using-a-file/m-p/426917#M9978</guid>
      <dc:creator>AnthonyGiles</dc:creator>
      <dc:date>2013-01-18T15:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with query expression when using a File geodatabase</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/problem-with-query-expression-when-using-a-file/m-p/426918#M9979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Anthony,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; No the * is for Personal Geodatabases not File GDB. I am not sure what Ionara's issue is.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2013 15:53:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/problem-with-query-expression-when-using-a-file/m-p/426918#M9979</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2013-01-18T15:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with query expression when using a File geodatabase</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/problem-with-query-expression-when-using-a-file/m-p/426919#M9980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I found out the problem but still don't have a solution. It is because of case sensitivity. In my database I have names partly in Upper case like "AES Custom Woods" or "AGE Industries, Inc", and "NAPCO" (all in upper case" and also like this "Temple-Inland Forestry Company". How can I change the query to accomodate all the options? Thank you for any help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2013 16:22:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/problem-with-query-expression-when-using-a-file/m-p/426919#M9980</guid>
      <dc:creator>ionarawilson1</dc:creator>
      <dc:date>2013-01-18T16:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with query expression when using a File geodatabase</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/problem-with-query-expression-when-using-a-file/m-p/426920#M9981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ionara,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Simply use this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;expr = "Upper(Company) Like Upper('%" + qText.text + "%') AND Status_not = ''" ;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2013 16:25:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/problem-with-query-expression-when-using-a-file/m-p/426920#M9981</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2013-01-18T16:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with query expression when using a File geodatabase</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/problem-with-query-expression-when-using-a-file/m-p/426921#M9982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;...a bit of a workaround, but for now you could replace your current exp with:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;expr = "Company Like '%" + qText.text + "%' AND Status_not = ' ' OR Company Like '" + qText.text + "%' AND Status_not = ' ' OR Company Like '%" + qText.text + "' AND Status_not = ' '"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's ugly, but will work I think.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please disregard, didn't know it was due to case.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2013 16:28:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/problem-with-query-expression-when-using-a-file/m-p/426921#M9982</guid>
      <dc:creator>T__WayneWhitley</dc:creator>
      <dc:date>2013-01-18T16:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with query expression when using a File geodatabase</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/problem-with-query-expression-when-using-a-file/m-p/426922#M9983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Robert, you are, as always, my hero!!! Thanks again!!! It works!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you Wayne for trying but it does not solve the problem of the case sensitivity, thank you!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2013 16:34:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/problem-with-query-expression-when-using-a-file/m-p/426922#M9983</guid>
      <dc:creator>ionarawilson1</dc:creator>
      <dc:date>2013-01-18T16:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with query expression when using a File geodatabase</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/problem-with-query-expression-when-using-a-file/m-p/426923#M9984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Robert, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;By the way, why do we need the upper function in front of company?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2013 17:10:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/problem-with-query-expression-when-using-a-file/m-p/426923#M9984</guid>
      <dc:creator>ionarawilson1</dc:creator>
      <dc:date>2013-01-18T17:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with query expression when using a File geodatabase</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/problem-with-query-expression-when-using-a-file/m-p/426924#M9985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ionara,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; You have to tell the SQL to capitalize the company field data and the users input to resolve the case sensitivity.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2013 23:43:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/problem-with-query-expression-when-using-a-file/m-p/426924#M9985</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2013-01-18T23:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with query expression when using a File geodatabase</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/problem-with-query-expression-when-using-a-file/m-p/426925#M9986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thank you Robert!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2013 16:15:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/problem-with-query-expression-when-using-a-file/m-p/426925#M9986</guid>
      <dc:creator>ionarawilson1</dc:creator>
      <dc:date>2013-01-22T16:15:33Z</dc:date>
    </item>
  </channel>
</rss>

