<?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: Editing attributes not using the editor widget in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/editing-attributes-not-using-the-editor-widget/m-p/30483#M793</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Many thanks to the both of you for your help! we have it working now&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Oct 2010 14:00:02 GMT</pubDate>
    <dc:creator>IvanGibson</dc:creator>
    <dc:date>2010-10-20T14:00:02Z</dc:date>
    <item>
      <title>Editing attributes not using the editor widget</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/editing-attributes-not-using-the-editor-widget/m-p/30480#M790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm new to both silverlight and esri. I need to be able to edit attributes of existing points through code rather than using editor widget. How would i go about doing this, or where would be a good starting point to learn about this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Oct 2010 19:19:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/editing-attributes-not-using-the-editor-widget/m-p/30480#M790</guid>
      <dc:creator>IvanGibson</dc:creator>
      <dc:date>2010-10-12T19:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: Editing attributes not using the editor widget</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/editing-attributes-not-using-the-editor-widget/m-p/30481#M791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Each graphic have Attributes property which is of type Dictionary&amp;lt;string, object&amp;gt;. You can easily observe what the values are by doing:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;foreach(var item in graphic.Attributes)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; MessageBox.Show(string.Format("{0}: {1}", item.Key, item.Value));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To know the field type, you can go to FeatureLayer.LayerInfo.Fields. Each field will tell you if it is Editable, if it has Length restriction, and what type it falls under. You can check out the API Reference tab, specifically this: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Field_members.html"&gt;http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Field_members.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You should then be able to do something like to edit a certain attribute.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;graphic.Attributes["fieldName"] = fieldValue; //where fieldValue matches the type of "fieldName"&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Oct 2010 13:49:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/editing-attributes-not-using-the-editor-widget/m-p/30481#M791</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2010-10-13T13:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: Editing attributes not using the editor widget</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/editing-attributes-not-using-the-editor-widget/m-p/30482#M792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just to add to that: FeatureLayer automatically tracks changes to its graphics collection, and the attributes and geometry of the individual graphics. If it detects a change, it will automatically get pushed back to the server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So like Jennifer wrote, all you need to do is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;graphic.Attributes["fieldName"] = myFieldValue;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Oct 2010 22:12:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/editing-attributes-not-using-the-editor-widget/m-p/30482#M792</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2010-10-13T22:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: Editing attributes not using the editor widget</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/editing-attributes-not-using-the-editor-widget/m-p/30483#M793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Many thanks to the both of you for your help! we have it working now&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Oct 2010 14:00:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/editing-attributes-not-using-the-editor-widget/m-p/30483#M793</guid>
      <dc:creator>IvanGibson</dc:creator>
      <dc:date>2010-10-20T14:00:02Z</dc:date>
    </item>
  </channel>
</rss>

