<?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 Query doesnt return results if i dont use caps in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-doesnt-return-results-if-i-dont-use-caps/m-p/92402#M8399</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I got a query widget and if i dont enter the search string in upper case it wont return results but will trigger an error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have almost identical application just different service and it works with lower case without a problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there something i'm missing?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Sep 2012 08:47:46 GMT</pubDate>
    <dc:creator>MatejSkerjanc</dc:creator>
    <dc:date>2012-09-10T08:47:46Z</dc:date>
    <item>
      <title>Query doesnt return results if i dont use caps</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-doesnt-return-results-if-i-dont-use-caps/m-p/92402#M8399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I got a query widget and if i dont enter the search string in upper case it wont return results but will trigger an error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have almost identical application just different service and it works with lower case without a problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there something i'm missing?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 08:47:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-doesnt-return-results-if-i-dont-use-caps/m-p/92402#M8399</guid>
      <dc:creator>MatejSkerjanc</dc:creator>
      <dc:date>2012-09-10T08:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: Query doesnt return results if i dont use caps</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-doesnt-return-results-if-i-dont-use-caps/m-p/92403#M8400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;if i dont enter the search string in upper case it wont return results but will trigger an error.&lt;BR /&gt;I have almost identical application just different service and it works with lower case without a problem.&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's likely that in one service, your values are stored in uppercase while in the other service, they are stored in lowercase. The query honours the case of the input features.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To test this, open your query URL in a web browser and append "/query" - this will bring up an interface allowing you to inspect the values of your fields. Eg:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Earthquakes/Since_1970/MapServer/0/query" rel="nofollow" target="_blank"&gt;http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Earthquakes/Since_1970/MapServer/0/&lt;STRONG&gt;query&lt;/STRONG&gt;&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Earthquakes/Since_1970/MapServer/0/query?text=&amp;amp;geometry=&amp;amp;geometryType=esriGeometryPoint&amp;amp;inSR=&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;relationParam=&amp;amp;objectIds=&amp;amp;where=1%3D1&amp;amp;time=&amp;amp;returnIdsOnly=false&amp;amp;returnGeometry=true&amp;amp;maxAllowableOffset=&amp;amp;outSR=&amp;amp;outFields=Name&amp;amp;f=pjson" rel="nofollow" target="_blank"&gt;this query&lt;/A&gt;&lt;SPAN&gt; reveals that the Name field is stored in uppercase:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt; "Name" : "CHINA: YUNNAN PROVINCE; VIETNAM: HANOI"&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You may be able to handle this in your code by converting the input string and the query to uppercase.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 22:50:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-doesnt-return-results-if-i-dont-use-caps/m-p/92403#M8400</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2012-09-10T22:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: Query doesnt return results if i dont use caps</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-doesnt-return-results-if-i-dont-use-caps/m-p/92404#M8401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;It's likely that in one service, your values are stored in uppercase while in the other service, they are stored in lowercase. The query honours the case of the input features.&lt;BR /&gt;&lt;BR /&gt;To test this, open your query URL in a web browser and append "/query" - this will bring up an interface allowing you to inspect the values of your fields. Eg:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Earthquakes/Since_1970/MapServer/0/query"&gt;http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Earthquakes/Since_1970/MapServer/0/&lt;STRONG&gt;query&lt;/STRONG&gt;&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;For example, &lt;A href="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Earthquakes/Since_1970/MapServer/0/query?text=&amp;amp;geometry=&amp;amp;geometryType=esriGeometryPoint&amp;amp;inSR=&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;relationParam=&amp;amp;objectIds=&amp;amp;where=1%3D1&amp;amp;time=&amp;amp;returnIdsOnly=false&amp;amp;returnGeometry=true&amp;amp;maxAllowableOffset=&amp;amp;outSR=&amp;amp;outFields=Name&amp;amp;f=pjson"&gt;this query&lt;/A&gt; reveals that the Name field is stored in uppercase:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;&lt;SPAN style="color:#000000;"&gt; "Name" : "CHINA: YUNNAN PROVINCE; VIETNAM: HANOI"&lt;/SPAN&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;You may be able to handle this in your code by converting the input string and the query to uppercase.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It was me thinking it works like usual SQL server where it doesnt really matter if you type in lower case or upper case but i solved it using setting query task where to use LOWER. Thanks for the answer!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 07:46:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-doesnt-return-results-if-i-dont-use-caps/m-p/92404#M8401</guid>
      <dc:creator>MatejSkerjanc</dc:creator>
      <dc:date>2012-09-11T07:46:53Z</dc:date>
    </item>
  </channel>
</rss>

