<?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 Determine Data Type of Attribute (in Query Results) in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-determine-data-type-of-attribute-in-query/m-p/708916#M18210</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Prior to ArcGIS Server v10, this fields information was not available in the query result, so there was no way for Silverlight to know if for instance "10" is an integer, double or decimal, and it's JSON Deserializer will parse it as whatever it looks like (in this case integer).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However if you hit an ArcGIS Server 10, you should be seeing consistent data types on the attributes.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Aug 2010 15:17:07 GMT</pubDate>
    <dc:creator>dotMorten_esri</dc:creator>
    <dc:date>2010-08-26T15:17:07Z</dc:date>
    <item>
      <title>How to Determine Data Type of Attribute (in Query Results)</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-determine-data-type-of-attribute-in-query/m-p/708914#M18208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am executing various queries against FeatureLayers and DynamicMapServiceLayers. My results (QueryEventArgs) include a FeatureSet. Digging into that you end up with a Graphic with Attributes. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My question: How do I know the data type of a given attribute &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;column&lt;/SPAN&gt;&lt;SPAN&gt;? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I initially thought I could just do theGraphic.Attributes(colName).GetType.FullName, but I have seen that the object will change from System.Int32 to System.Decimal within a column. This happens when the first value is 2335 and the second is 2335.5.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've considered hitting the REST service for the layer, but that seems like overkill when I see that the API has a Field class and FieldType enumeration that seem to be purposed with my question in mind. The only trouble is I cannot find where they are used or available.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thoughts?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Aug 2010 09:52:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-determine-data-type-of-attribute-in-query/m-p/708914#M18208</guid>
      <dc:creator>DavidLowther</dc:creator>
      <dc:date>2010-08-24T09:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to Determine Data Type of Attribute (in Query Results)</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-determine-data-type-of-attribute-in-query/m-p/708915#M18209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For a FeatureLayer you can investigate the attribute type based on the layer's LayerInfo.Fields.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Aug 2010 03:11:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-determine-data-type-of-attribute-in-query/m-p/708915#M18209</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2010-08-26T03:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to Determine Data Type of Attribute (in Query Results)</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-determine-data-type-of-attribute-in-query/m-p/708916#M18210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Prior to ArcGIS Server v10, this fields information was not available in the query result, so there was no way for Silverlight to know if for instance "10" is an integer, double or decimal, and it's JSON Deserializer will parse it as whatever it looks like (in this case integer).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However if you hit an ArcGIS Server 10, you should be seeing consistent data types on the attributes.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Aug 2010 15:17:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-determine-data-type-of-attribute-in-query/m-p/708916#M18210</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2010-08-26T15:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to Determine Data Type of Attribute (in Query Results)</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-determine-data-type-of-attribute-in-query/m-p/708917#M18211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Morten and Jennifer for your responses. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I ended up using the REST API to get this information because I am using a 9.3 AGS.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Aug 2010 16:06:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-determine-data-type-of-attribute-in-query/m-p/708917#M18211</guid>
      <dc:creator>DavidLowther</dc:creator>
      <dc:date>2010-08-26T16:06:53Z</dc:date>
    </item>
  </channel>
</rss>

