<?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 QueryTask - Finding Attribute field types in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/querytask-finding-attribute-field-types/m-p/541845#M13844</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would like to know if there is a more elegant way of finding the attribute field types when using a QueryTask.&amp;nbsp; The problem we are having is that if the feature layer is dynamic, we do not know the field types within the layer on the server--we basically have to return all 500 records with a query such as SELECT * From Dataset Where OBJECTID &amp;gt; 0.&amp;nbsp; Is there a method where we can SELECT Top 1 from dataset, or something similar?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Dec 2010 17:09:46 GMT</pubDate>
    <dc:creator>PaulLeedham</dc:creator>
    <dc:date>2010-12-06T17:09:46Z</dc:date>
    <item>
      <title>QueryTask - Finding Attribute field types</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/querytask-finding-attribute-field-types/m-p/541845#M13844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would like to know if there is a more elegant way of finding the attribute field types when using a QueryTask.&amp;nbsp; The problem we are having is that if the feature layer is dynamic, we do not know the field types within the layer on the server--we basically have to return all 500 records with a query such as SELECT * From Dataset Where OBJECTID &amp;gt; 0.&amp;nbsp; Is there a method where we can SELECT Top 1 from dataset, or something similar?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Dec 2010 17:09:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/querytask-finding-attribute-field-types/m-p/541845#M13844</guid>
      <dc:creator>PaulLeedham</dc:creator>
      <dc:date>2010-12-06T17:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: QueryTask - Finding Attribute field types</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/querytask-finding-attribute-field-types/m-p/541846#M13845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The REST API does not support this type of query. Only the following parameters may be provided (even for 10.01) &lt;/SPAN&gt;&lt;A href="http://services.arcgisonline.com/ArcGIS/SDK/REST/query.html"&gt;http://services.arcgisonline.com/ArcGIS/SDK/REST/query.html&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You would have to use LINQ query to narrow the results in the ExecuteCompleted or simply retrieve the first feature and ignore the rest of the results.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Dec 2010 17:54:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/querytask-finding-attribute-field-types/m-p/541846#M13845</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2010-12-06T17:54:15Z</dc:date>
    </item>
  </channel>
</rss>

