<?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 featureLayer applyEdits Update attributes programatically for hidden field in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/featurelayer-applyedits-update-attributes/m-p/146085#M3386</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Greetigns, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am attempting to update attributes programatically for a hidden field. I am basically trying to exclude a field (PKEY) from the edit widget's attribute inspector. Instead of exposing the user to the PKEY field I would rather popuplate it on the fly since it is only used in a 1:M table relate. So far I have:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;const updates:Object = {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; NEIGHBORHOOD: graphic.attributes.NEIGHBORHOOD,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; PAC: graphic.attributes.PAC,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; PKEY: graphic.attributes.OBJECTID&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;graphic.attributes = updates;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var aryUpdates:Array = [ graphic ];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;flBoundaries.applyEdits(null, aryUpdates, null);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is not upadting the PKEY field and I believe that I am either not applying edits to the featureLayer correctly or it is not possible to update a hidden field. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone point me in the right direction? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, Tyler&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Oct 2012 13:49:12 GMT</pubDate>
    <dc:creator>TylerWaring</dc:creator>
    <dc:date>2012-10-08T13:49:12Z</dc:date>
    <item>
      <title>featureLayer applyEdits Update attributes programatically for hidden field</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/featurelayer-applyedits-update-attributes/m-p/146085#M3386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Greetigns, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am attempting to update attributes programatically for a hidden field. I am basically trying to exclude a field (PKEY) from the edit widget's attribute inspector. Instead of exposing the user to the PKEY field I would rather popuplate it on the fly since it is only used in a 1:M table relate. So far I have:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;const updates:Object = {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; NEIGHBORHOOD: graphic.attributes.NEIGHBORHOOD,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; PAC: graphic.attributes.PAC,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; PKEY: graphic.attributes.OBJECTID&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;graphic.attributes = updates;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var aryUpdates:Array = [ graphic ];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;flBoundaries.applyEdits(null, aryUpdates, null);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is not upadting the PKEY field and I believe that I am either not applying edits to the featureLayer correctly or it is not possible to update a hidden field. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone point me in the right direction? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, Tyler&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2012 13:49:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/featurelayer-applyedits-update-attributes/m-p/146085#M3386</guid>
      <dc:creator>TylerWaring</dc:creator>
      <dc:date>2012-10-08T13:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: featureLayer applyEdits Update attributes programatically for hidden field</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/featurelayer-applyedits-update-attributes/m-p/146086#M3387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Turns out as I halfway expected that you can not update the values for a field that is hidden. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tyler&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2012 19:12:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/featurelayer-applyedits-update-attributes/m-p/146086#M3387</guid>
      <dc:creator>TylerWaring</dc:creator>
      <dc:date>2012-10-08T19:12:05Z</dc:date>
    </item>
  </channel>
</rss>

