<?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: How to query ARCGIS REST Service via ajax with street address in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-query-arcgis-rest-service-via-ajax-with/m-p/116220#M10837</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;That was just an example. You will have to figure out what the field name is in your data (assuming you do have a field with street address info).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Sep 2017 20:58:31 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2017-09-28T20:58:31Z</dc:date>
    <item>
      <title>How to query ARCGIS REST Service via ajax with street address</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-query-arcgis-rest-service-via-ajax-with/m-p/116217#M10834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #242729; background-color: #ffffff; border: 0px; margin: 0px 0px 1em;"&gt;Not very familiar with the necessary GIS concepts so this is a beginner question. From my web app I am querying a GIS REST Service using this query:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;require([ "dojo/dom", "dojo/on", "esri/tasks/query", "esri/tasks/QueryTask", "dojo/domReady!" ], function (dom, on, Query, QueryTask) {&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;var queryTask = new QueryTask("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fgis.something.org%2Farcgis%2Frest%2Fservices%2FXXXX%2FOperational%2FMapServer%2F6" rel="nofollow" target="_blank"&gt;http://gis.something.org/arcgis/rest/services/XXXX/Operational/MapServer/6&lt;/A&gt;&lt;SPAN&gt;"); &lt;/SPAN&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; var query = new Query();&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; query.returnGeometry = false;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; query.outFields = [&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; "DISTRICTID "&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; ];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;query.where = "SUBID = '" + SUBJID + "'";&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;queryTask.execute(query, showResults);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #242729; background-color: #ffffff; border: 0px; margin: 0px 0px 1em;"&gt;In this scenario I had a subject ID (SUBID) which I used for the query to return which district the subject falls in (i.e. the respective DistrictID). I now want to query the service by street address, rather than by SUBID. Any pointers how to structure the query in this case?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2017 18:32:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-query-arcgis-rest-service-via-ajax-with/m-p/116217#M10834</guid>
      <dc:creator>AssiaAlexandrova</dc:creator>
      <dc:date>2017-09-28T18:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to query ARCGIS REST Service via ajax with street address</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-query-arcgis-rest-service-via-ajax-with/m-p/116218#M10835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;So you want to include your street address field in your out fields (most likely) and then change your query.where.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;query&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;outFields &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"*"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&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;"ST_ADD LIKE '%"&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; STADD &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string 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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:50:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-query-arcgis-rest-service-via-ajax-with/m-p/116218#M10835</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T06:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to query ARCGIS REST Service via ajax with street address</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-query-arcgis-rest-service-via-ajax-with/m-p/116219#M10836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Robert!&lt;/P&gt;&lt;P&gt;Is ST_ADD a universal convention for naming the street address field or will I have to find out what the equivalent of that is in this particular service?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2017 20:37:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-query-arcgis-rest-service-via-ajax-with/m-p/116219#M10836</guid>
      <dc:creator>AssiaAlexandrova</dc:creator>
      <dc:date>2017-09-28T20:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to query ARCGIS REST Service via ajax with street address</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-query-arcgis-rest-service-via-ajax-with/m-p/116220#M10837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;That was just an example. You will have to figure out what the field name is in your data (assuming you do have a field with street address info).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2017 20:58:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-query-arcgis-rest-service-via-ajax-with/m-p/116220#M10837</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-09-28T20:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to query ARCGIS REST Service via ajax with street address</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-query-arcgis-rest-service-via-ajax-with/m-p/116221#M10838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2017 21:21:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-query-arcgis-rest-service-via-ajax-with/m-p/116221#M10838</guid>
      <dc:creator>AssiaAlexandrova</dc:creator>
      <dc:date>2017-09-28T21:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to query ARCGIS REST Service via ajax with street address</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-query-arcgis-rest-service-via-ajax-with/m-p/116222#M10839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't forget to mark this question as answered by clicking on the "Correct Answer" link on the reply that answered your question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Sep 2017 12:42:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-query-arcgis-rest-service-via-ajax-with/m-p/116222#M10839</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-09-29T12:42:30Z</dc:date>
    </item>
  </channel>
</rss>

