<?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: update attributes without attributeInspector in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/update-attributes-without-attributeinspector/m-p/165449#M3870</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I just realized my code is working-I'm almost sorry I posted.&amp;nbsp; It's my event listener that fails.&amp;nbsp; What am I not passing to the event listener that causes the error message?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Nov 2010 20:03:28 GMT</pubDate>
    <dc:creator>KathleenBrenkert</dc:creator>
    <dc:date>2010-11-19T20:03:28Z</dc:date>
    <item>
      <title>update attributes without attributeInspector</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/update-attributes-without-attributeinspector/m-p/165448#M3869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've tried a couple different ways but so far this bit of code seems to have me the closest.&amp;nbsp; I've got a form that is populated with the attributes of my selected feature.&amp;nbsp; I can make my changes to the attributes in the form and then I have a submit button (see code).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I run the debugger 'feature' has the objectID of my selected feature and the updated attributes from the form, in an array.&amp;nbsp; When I run it I get error 1009, cannot access a property or mehtod of a null object reference&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
protected function submitChanges_clickHandler(event:MouseEvent):void
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; var feature:Graphic=myFeatureLayer.selectedFeatures[0];
&amp;nbsp;&amp;nbsp;&amp;nbsp; feature.attributes={OBJECTID:myFeatureLayer.selectedFeatures[0].attributes.OBJECTID,GROUP_TYPE:proType.text,NAME:proName.text, DESCRIPT:proDescript.text};
&amp;nbsp;&amp;nbsp;&amp;nbsp; const updates:Array=[feature];
&amp;nbsp;&amp;nbsp;&amp;nbsp; myFeatureLayer.applyEdits(null,updates,null);
&amp;nbsp;&amp;nbsp;&amp;nbsp; myFeatureLayer.addEventListener(FeatureLayerEvent.EDITS_COMPLETE, myFeature_editsCompleteHandler);
&amp;nbsp;&amp;nbsp; }

&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Nov 2010 19:52:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/update-attributes-without-attributeinspector/m-p/165448#M3869</guid>
      <dc:creator>KathleenBrenkert</dc:creator>
      <dc:date>2010-11-19T19:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: update attributes without attributeInspector</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/update-attributes-without-attributeinspector/m-p/165449#M3870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I just realized my code is working-I'm almost sorry I posted.&amp;nbsp; It's my event listener that fails.&amp;nbsp; What am I not passing to the event listener that causes the error message?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Nov 2010 20:03:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/update-attributes-without-attributeinspector/m-p/165449#M3870</guid>
      <dc:creator>KathleenBrenkert</dc:creator>
      <dc:date>2010-11-19T20:03:28Z</dc:date>
    </item>
  </channel>
</rss>

