<?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: non-case sensitive search function in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/non-case-sensitive-search-function/m-p/278551#M25683</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mhhh ... well there is a ComboBox"Seleccione un municipio" (next to the zoom in/out) button, where you can select/search counties.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The query is build like this;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var query = new esri.tasks.Query();&lt;/P&gt;&lt;P&gt;query.where = "NOM_MUN = '"+ campo +"'";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOM_MUN contains the county names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you,&lt;/P&gt;&lt;P&gt;Flo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Sep 2014 20:48:06 GMT</pubDate>
    <dc:creator>CONABIONC_for_Knowledge_and_Us</dc:creator>
    <dc:date>2014-09-11T20:48:06Z</dc:date>
    <item>
      <title>non-case sensitive search function</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/non-case-sensitive-search-function/m-p/278547#M25679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are working on a web-map with an integrated search function (built on the ArcGIS API for JavaScript), based on county names, which are requested from a feature service - here the map:&lt;/P&gt;&lt;P&gt;&lt;A href="http://speck.conabio.gob.mx/cruzada/OAX/pobreza/index.html" target="_blank"&gt;Cruzada Nacional contra el Hambre en Oaxaca&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function works fine, but just when you put the names exactly like they are written in the feature service. Is there a way to define a non-case sensitive search function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Case 1)&amp;nbsp; Santa Ana Tavela &amp;gt; 1 result&lt;/LI&gt;&lt;LI&gt;Case 2) St. Ana Tavela &amp;gt; 0 results&lt;/LI&gt;&lt;LI&gt;Case 3) Sant Ana Tavela &amp;gt; 0 results&lt;/LI&gt;&lt;LI&gt;Case 4) Ana Tavela &amp;gt; 0 results&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can we define a more flexible search function that also responds to case 2-4?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you &amp;amp; best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Flo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2014 20:12:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/non-case-sensitive-search-function/m-p/278547#M25679</guid>
      <dc:creator>CONABIONC_for_Knowledge_and_Us</dc:creator>
      <dc:date>2014-09-11T20:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: non-case sensitive search function</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/non-case-sensitive-search-function/m-p/278548#M25680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Flo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have not tagged your question so it is hard to know what application, language you are referring to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your are you using a SQL statement as you could add an upper or lower function to convert the case so that they will be the same, e.g:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPPER(Name) = UPPER(Value)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2014 20:21:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/non-case-sensitive-search-function/m-p/278548#M25680</guid>
      <dc:creator>AnthonyGiles</dc:creator>
      <dc:date>2014-09-11T20:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: non-case sensitive search function</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/non-case-sensitive-search-function/m-p/278549#M25681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Anthony, it´s the ArcGIS JavaScript API - I´ve updated the question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2014 20:26:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/non-case-sensitive-search-function/m-p/278549#M25681</guid>
      <dc:creator>CONABIONC_for_Knowledge_and_Us</dc:creator>
      <dc:date>2014-09-11T20:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: non-case sensitive search function</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/non-case-sensitive-search-function/m-p/278550#M25682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I cannot see any search function on the link you have posted up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you building up a SQL command to that is passed to the server? If so just build in the UPPER functions above into your SQL &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2014 20:34:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/non-case-sensitive-search-function/m-p/278550#M25682</guid>
      <dc:creator>AnthonyGiles</dc:creator>
      <dc:date>2014-09-11T20:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: non-case sensitive search function</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/non-case-sensitive-search-function/m-p/278551#M25683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mhhh ... well there is a ComboBox"Seleccione un municipio" (next to the zoom in/out) button, where you can select/search counties.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The query is build like this;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var query = new esri.tasks.Query();&lt;/P&gt;&lt;P&gt;query.where = "NOM_MUN = '"+ campo +"'";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOM_MUN contains the county names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you,&lt;/P&gt;&lt;P&gt;Flo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2014 20:48:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/non-case-sensitive-search-function/m-p/278551#M25683</guid>
      <dc:creator>CONABIONC_for_Knowledge_and_Us</dc:creator>
      <dc:date>2014-09-11T20:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: non-case sensitive search function</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/non-case-sensitive-search-function/m-p/278552#M25684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Flo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reading your question again it's not really just a case of searching for case sensitivity, you would be better using a like statement to search for a particular word:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;query.where = "NOM_MUN LIKE '%"+ campo +"%'";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;this will allow you to type in &lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;Tavela&lt;/SPAN&gt; and get a result&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;I'm still not seeing a search bar in IE11:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;&lt;IMG class="jive-image image-1" src="https://community.esri.com/legacyfs/online/9741_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2014 20:59:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/non-case-sensitive-search-function/m-p/278552#M25684</guid>
      <dc:creator>AnthonyGiles</dc:creator>
      <dc:date>2014-09-11T20:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: non-case sensitive search function</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/non-case-sensitive-search-function/m-p/278553#M25685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much for the hint and for clarifying the issue. Our programmer will give it a try, than we´ll update the thread&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Flo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S.: It works here also in IE11 - you just have the wait until the map is loaded completely.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2014 21:10:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/non-case-sensitive-search-function/m-p/278553#M25685</guid>
      <dc:creator>CONABIONC_for_Knowledge_and_Us</dc:creator>
      <dc:date>2014-09-11T21:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: non-case sensitive search function</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/non-case-sensitive-search-function/m-p/278554#M25686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anthony,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LIKE works fine - thank you very much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, we would like, that the combobox shows the same behaviour, i.e. that it lists all counties that contain a name´s part - but I guess that´s a dojo/dijit issue, so we´ll close this thread with "answered".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2014 21:38:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/non-case-sensitive-search-function/m-p/278554#M25686</guid>
      <dc:creator>CONABIONC_for_Knowledge_and_Us</dc:creator>
      <dc:date>2014-09-11T21:38:30Z</dc:date>
    </item>
  </channel>
</rss>

