<?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: Query Layer: JS 4x - GetElementById in .NET and the Esri JavaScript API Questions</title>
    <link>https://community.esri.com/t5/net-and-the-esri-javascript-api-questions/query-layer-js-4x-getelementbyid/m-p/839905#M66</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Egge-Jan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you! I did look into this in detail and it is from the STATUS2 field. Please see screenshot below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are no domain or subtypes in the schema of the HarperSummerOGWells layer &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp;I checked in ArcGIS Desktop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/482369_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 16 Feb 2020 09:32:14 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2020-02-16T09:32:14Z</dc:date>
    <item>
      <title>Query Layer: JS 4x - GetElementById</title>
      <link>https://community.esri.com/t5/net-and-the-esri-javascript-api-questions/query-layer-js-4x-getelementbyid/m-p/839903#M64</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this script, can someone please point out where the well-type options for the select tag is getting populated from? I have tried to incorporate this for my own code but I can't seem to get it working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=featurelayer-query" title="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=featurelayer-query"&gt;ArcGIS API for JavaScript Sandbox&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2020 20:15:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-and-the-esri-javascript-api-questions/query-layer-js-4x-getelementbyid/m-p/839903#M64</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-02-12T20:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: Query Layer: JS 4x - GetElementById</title>
      <link>https://community.esri.com/t5/net-and-the-esri-javascript-api-questions/query-layer-js-4x-getelementbyid/m-p/839904#M65</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/333043"&gt;Sravanthi Murali&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: andale mono, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // return an array of unique values in&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: andale mono, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // the STATUS2 field of the wells layer&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the comments in the JavaScript code you point to (&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=featurelayer-query" title="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=featurelayer-query"&gt;ArcGIS API for JavaScript Sandbox&lt;/A&gt;) I can see that the well-type options for the select tag is populated with unique values from the STATUS2 field of the wells layer, i.e. the portal item with the id: "8af8dc98e75049bda6811b0cdf9450ee":&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.arcgis.com/home/item.html?id=8af8dc98e75049bda6811b0cdf9450ee" title="https://www.arcgis.com/home/item.html?id=8af8dc98e75049bda6811b0cdf9450ee"&gt;https://www.arcgis.com/home/item.html?id=8af8dc98e75049bda6811b0cdf9450ee&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This Feature Layer (owned and published by the jsapi_team) points to this Layer &lt;A class="link-titled" href="https://services.arcgis.com/V6ZHFr6zdgNZuVG0/arcgis/rest/services/HarperSumnerOGWells/FeatureServer/0" title="https://services.arcgis.com/V6ZHFr6zdgNZuVG0/arcgis/rest/services/HarperSumnerOGWells/FeatureServer/0"&gt;https://services.arcgis.com/V6ZHFr6zdgNZuVG0/arcgis/rest/services/HarperSumnerOGWells/FeatureServer/0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can, for example, query this layer for wells where&amp;nbsp; STATUS2 = 'KCC Fee Fund Plugging'. This will return 23 wells.&lt;/P&gt;&lt;P&gt;Execute this query to see these 23 wells:&lt;/P&gt;&lt;P&gt;&lt;A href="https://services.arcgis.com/V6ZHFr6zdgNZuVG0/arcgis/rest/services/HarperSumnerOGWells/FeatureServer/0/query?where=STATUS2+%3D+%27KCC+Fee+Fund+Plugging%27&amp;amp;outFields=*&amp;amp;returnGeometry=true&amp;amp;f=html"&gt;https://services.arcgis.com/V6ZHFr6zdgNZuVG0/arcgis/rest/services/HarperSumnerOGWells/FeatureServer/0/query?where=STATUS2+%3D+%27KCC+Fee+Fund+Plugging%27&amp;amp;outFields=*&amp;amp;returnGeometry=true&amp;amp;f=html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps to get your own code running &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. If you think this answer is correct, please feel free to mark it as such, as this will earn me a whopping 250 points on GeoNet...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Egge-Jan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2020 16:00:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-and-the-esri-javascript-api-questions/query-layer-js-4x-getelementbyid/m-p/839904#M65</guid>
      <dc:creator>Egge-Jan_Pollé</dc:creator>
      <dc:date>2020-02-13T16:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: Query Layer: JS 4x - GetElementById</title>
      <link>https://community.esri.com/t5/net-and-the-esri-javascript-api-questions/query-layer-js-4x-getelementbyid/m-p/839905#M66</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Egge-Jan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you! I did look into this in detail and it is from the STATUS2 field. Please see screenshot below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are no domain or subtypes in the schema of the HarperSummerOGWells layer &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp;I checked in ArcGIS Desktop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/482369_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Feb 2020 09:32:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-and-the-esri-javascript-api-questions/query-layer-js-4x-getelementbyid/m-p/839905#M66</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-02-16T09:32:14Z</dc:date>
    </item>
  </channel>
</rss>

