<?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: Attribute table Value Binding to Dropdownlist in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attribute-table-value-binding-to-dropdownlist/m-p/312643#M28776</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Thejus Kambi,&lt;/P&gt;&lt;P&gt;I am trying to get ALL values (List) from the attribute table, column named called Location. Need to bind with the DropDownList, So the user can select the location. According to above code,&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;OBJECTID = 2 brings SINGLE row as if like WHERE clause. My scenario, I will not mention OBJECTID.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Jan 2017 13:55:14 GMT</pubDate>
    <dc:creator>MathanManohar</dc:creator>
    <dc:date>2017-01-31T13:55:14Z</dc:date>
    <item>
      <title>Attribute table Value Binding to Dropdownlist</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attribute-table-value-binding-to-dropdownlist/m-p/312641#M28774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting the value from the attribute table using ArcGIS JS API. I want to list all the values in a particular column.Ex: column called Location is present in the Attribute table and values are present. Now, I want to extract the value of column Location.&lt;/P&gt;&lt;P&gt;Purpose:&lt;/P&gt;&lt;P&gt;Extracted value has to be binded with DropDownlist, So the user can select Location wise. the below function act as datasource to DropdownList&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code Tried:&lt;/P&gt;&lt;P&gt;&lt;BR /&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=https%3A%2F%2FDomain.org%2Fagswa%2Frest%2Fservices%2FMCOP_Practise%2FDeployment%2FMapServer%2F0" rel="nofollow" target="_blank"&gt;https://Domain.org/agswa/rest/services/MP_Practise/Deployment/MapServer/0&lt;/A&gt;&lt;SPAN&gt;");&lt;/SPAN&gt;&lt;BR /&gt; var query = new Query();&lt;BR /&gt; &lt;STRONG&gt;// query.objectIds = [2]; //HardCode - has to list all locations&lt;/STRONG&gt;&lt;BR /&gt;query.outFields = ["Location"];&lt;BR /&gt;query.returnGeometry = true;&lt;BR /&gt; queryTask.on("complete", queryTaskExecuteCompleteHandler);&lt;BR /&gt; queryTask.on("error", queryTaskErrorHandler);&lt;BR /&gt; queryTask.execute(query, showResults);&lt;/P&gt;&lt;P&gt;function queryTaskExecuteCompleteHandler(queryResults) {&lt;BR /&gt; console.log("complete", queryResults);&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;function queryTaskErrorHandler(queryError) {&lt;BR /&gt; console.log("error", queryError.error.details);&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note: If the ObjectId line is uncommented, It extracts single value corresponding to ObjectId.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks In Advance&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 13:15:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attribute-table-value-binding-to-dropdownlist/m-p/312641#M28774</guid>
      <dc:creator>MathanManohar</dc:creator>
      <dc:date>2017-01-31T13:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute table Value Binding to Dropdownlist</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attribute-table-value-binding-to-dropdownlist/m-p/312642#M28775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you be more specific about, what issues you are have and what you need from us?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding the objectid property, it is working as expected. Since, you are passing one id, it is returning the record with that object id, in you case OBJECTID = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Thejus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 13:49:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attribute-table-value-binding-to-dropdownlist/m-p/312642#M28775</guid>
      <dc:creator>thejuskambi</dc:creator>
      <dc:date>2017-01-31T13:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute table Value Binding to Dropdownlist</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attribute-table-value-binding-to-dropdownlist/m-p/312643#M28776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Thejus Kambi,&lt;/P&gt;&lt;P&gt;I am trying to get ALL values (List) from the attribute table, column named called Location. Need to bind with the DropDownList, So the user can select the location. According to above code,&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;OBJECTID = 2 brings SINGLE row as if like WHERE clause. My scenario, I will not mention OBJECTID.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 13:55:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attribute-table-value-binding-to-dropdownlist/m-p/312643#M28776</guid>
      <dc:creator>MathanManohar</dc:creator>
      <dc:date>2017-01-31T13:55:14Z</dc:date>
    </item>
  </channel>
</rss>

