<?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: What's wrong with this line of code? in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/what-s-wrong-with-this-line-of-code/m-p/213543#M4914</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I can confirm that there is better success with the FeatureLayerTask.&amp;nbsp; In the code below, the commented out section did work, where as the other code did&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var feat:Graphic = new Graphic(null,null,attr);
&amp;nbsp;&amp;nbsp;&amp;nbsp; var tblAddersTask:FeatureLayerTask = new FeatureLayerTask(tblAdders.url);
&amp;nbsp;&amp;nbsp;&amp;nbsp; tblAddersTask.applyEdits(null,null,[feat],"ObjectID",new AsyncResponder(onUpdateComplete,onUpdateFault,token));
&amp;nbsp;&amp;nbsp;&amp;nbsp; //tblAdders.applyEdits(null,null,[779],new AsyncResponder(onUpdateComplete,onUpdateFault,token));&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 10:28:33 GMT</pubDate>
    <dc:creator>HaroldBostic</dc:creator>
    <dc:date>2021-12-11T10:28:33Z</dc:date>
    <item>
      <title>What's wrong with this line of code?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/what-s-wrong-with-this-line-of-code/m-p/213540#M4911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="plain" name="code"&gt;const currentUseTable:FeatureLayer = new FeatureLayer("http://xxx/ArcGIS/rest/services/yyy/zzz/FeatureServer/2");
currentUseTable.addEventListener(FeatureLayerEvent.EDITS_COMPLETE, currentUseTableEditsComplete);
currentUseTable.applyEdits(null, null, [ {OBJECTID:403} ]); 
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See anything wrong with this? I can add and edit but nothing happens when I delete. There is a record in the table that I am tring to delete from with the ObjectID of 403. When I call the code, nothing happens. No error, the currentUseTableEditsComplete function is never called and the record is not deleted.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've been staring at this for hours and just can't figure out anything else to try. Please help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2011 03:53:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/what-s-wrong-with-this-line-of-code/m-p/213540#M4911</guid>
      <dc:creator>Gregme</dc:creator>
      <dc:date>2011-06-17T03:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: What's wrong with this line of code?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/what-s-wrong-with-this-line-of-code/m-p/213541#M4912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I changed the code so that I have an error handler. Here's the error message:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[RPC Fault faultString="Unable to complete&amp;nbsp; operation." faultCode="400" faultDetail="Invalid parameters"]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2011 04:08:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/what-s-wrong-with-this-line-of-code/m-p/213541#M4912</guid>
      <dc:creator>Gregme</dc:creator>
      <dc:date>2011-06-17T04:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: What's wrong with this line of code?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/what-s-wrong-with-this-line-of-code/m-p/213542#M4913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You should wait for the FeatureLayer to load before calling applyEdits() and you should pass it Graphic instances.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You find this easier to use instead:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/tasks/FeatureLayerTask.html#applyEdits()"&gt;http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/tasks/FeatureLayerTask.html#applyEdits()&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2011 22:31:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/what-s-wrong-with-this-line-of-code/m-p/213542#M4913</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2011-08-01T22:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: What's wrong with this line of code?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/what-s-wrong-with-this-line-of-code/m-p/213543#M4914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I can confirm that there is better success with the FeatureLayerTask.&amp;nbsp; In the code below, the commented out section did work, where as the other code did&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var feat:Graphic = new Graphic(null,null,attr);
&amp;nbsp;&amp;nbsp;&amp;nbsp; var tblAddersTask:FeatureLayerTask = new FeatureLayerTask(tblAdders.url);
&amp;nbsp;&amp;nbsp;&amp;nbsp; tblAddersTask.applyEdits(null,null,[feat],"ObjectID",new AsyncResponder(onUpdateComplete,onUpdateFault,token));
&amp;nbsp;&amp;nbsp;&amp;nbsp; //tblAdders.applyEdits(null,null,[779],new AsyncResponder(onUpdateComplete,onUpdateFault,token));&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:28:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/what-s-wrong-with-this-line-of-code/m-p/213543#M4914</guid>
      <dc:creator>HaroldBostic</dc:creator>
      <dc:date>2021-12-11T10:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: What's wrong with this line of code?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/what-s-wrong-with-this-line-of-code/m-p/213544#M4915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Anyone have sent a serious answer on the issue? I have the same problem and I can't understand how to solve it. Please don't propose work around or redirect to documentation (without samples)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maurizio&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Dec 2012 12:46:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/what-s-wrong-with-this-line-of-code/m-p/213544#M4915</guid>
      <dc:creator>SergioSamarelli</dc:creator>
      <dc:date>2012-12-26T12:46:50Z</dc:date>
    </item>
  </channel>
</rss>

