<?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 with applyEdits() [NEED HELP] in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/update-attributes-with-applyedits-need-help/m-p/38518#M910</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I'd double-check the request to make sure the right object id is being sent.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't think that's my problem since :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1st : I can delete features.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2nd : The error message clearly says that he's not EVEN attempting to update it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I find this really sad since I don't see anyone who posted this error before so I'm kinda stuck.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Even tho, I checked and the right OBJECTID is sent + I checked the database to see if it was there. And it's all ok.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Well this is the way I proceed : &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;feature.attributes={OBJECTID:gr.attributes.OBJECTID, NBR_PLANTS:strNbrPlant};&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;featureLayerFiche.applyEdits(null, [feature], null, new AsyncResponder(onResult, onFault));&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Jun 2012 16:11:42 GMT</pubDate>
    <dc:creator>SachaTousignant</dc:creator>
    <dc:date>2012-06-14T16:11:42Z</dc:date>
    <item>
      <title>Update attributes with applyEdits() [NEED HELP]</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/update-attributes-with-applyedits-need-help/m-p/38511#M903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm currently trying to update a feature layer without attribute inspector (gave up with the attribute inspector / editor since I had no control over it for the interface). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My first problem is the following :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have an error with my applyEdits : Invalid graphic features, Invalid parameters&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And I just found out why, it's because one of my field is a date with a format like 2012/06/13 04:00:00 UTC and I was trying to update it with a 2010-01-01 format. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My second problem is the following :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So without the date, the applyEdits goes into the onResult but, no changes have been made to the feature layer and it doesn't even trigger the editComplete nor editsStarting events from the feature layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's the code : &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;feature.attributes={OBJECTID:gr.attributes.OBJECTID, &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RESP_PERQ:strRespPerq, &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RESULT:strResultatF, &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NBR_PLANTS:strNbrPlant, &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RAISON:strRaison, &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CONFUSION:strConfusion};&amp;nbsp; featureLayerFiche.applyEdits(null, [feature], null, new AsyncResponder(onResult, onFault)); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; function onResult():void &amp;nbsp;&amp;nbsp;&amp;nbsp; { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Alert.show("ONRESULT"); &amp;nbsp;&amp;nbsp;&amp;nbsp; } &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; function onFault(info:Object, token:Object = null):void &amp;nbsp;&amp;nbsp;&amp;nbsp; { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Alert.show(info.toString()); &amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp; // LOAD OF CODE ... // &amp;lt;esri:FeatureLayer id="featureLayerFiche" &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mode="snapshot" &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; outFields="[OBJECTID, IDFICHE, NM_MUN, UNITE, DISTRICT, DATEFICHE, RESP_PERQ, DATE_PERQ, RESULT, NBR_PLANTS, RAISON, CONFUSION]" &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; selectionComplete="myFeatureLayer_selectionCompleteHandler(event)" &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; editsComplete="featureLayerFiche_EditsCompleteHandler" &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; editsStarting="featureLayerFiche_EditsStartingHandler" &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fault="featureLayerFiche_FaultHandler" &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; disableClientCaching="true" &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; url="http://myserver123/ArcGIS/rest/services/geocisaille/FeatureServer/1"/&amp;gt;&amp;nbsp; // LOAD OF CODE ... // &lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So I'm just wondering why it doesnt trigger my events if it went into the onResult function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;*Also, I tried to place the [feature] in the delete array and it works, so I can delete feature with no problem.*&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be greatly appreciated, since there's not alot of docs about it. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Lmk if you need more informations.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 19:50:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/update-attributes-with-applyedits-need-help/m-p/38511#M903</guid>
      <dc:creator>SachaTousignant</dc:creator>
      <dc:date>2012-06-13T19:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: Update attributes with applyEdits() [NEED HELP]</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/update-attributes-with-applyedits-need-help/m-p/38512#M904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just a wild guess here.&amp;nbsp; I would assume that you using the AsyncResponder overrides the edits complete event for the feature layer.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you tried just doing featureLayerFiche.applyEdits(null, [feature], null);&amp;nbsp; That is how I do it outside of the attribute inspector, and it works everytime.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hello everyone,&lt;BR /&gt;&lt;BR /&gt;I'm currently trying to update a feature layer without attribute inspector (gave up with the attribute inspector / editor since I had no control over it for the interface). &lt;BR /&gt;&lt;BR /&gt;My first problem is the following :&lt;BR /&gt;I have an error with my applyEdits : Invalid graphic features, Invalid parameters&lt;BR /&gt;And I just found out why, it's because one of my field is a date with a format like 2012/06/13 04:00:00 UTC and I was trying to update it with a 2010-01-01 format. &lt;BR /&gt;&lt;BR /&gt;My second problem is the following :&lt;BR /&gt;So without the date, the applyEdits goes into the onResult but, no changes have been made to the feature layer and it doesn't even trigger the editComplete nor editsStarting events from the feature layer.&lt;BR /&gt;&lt;BR /&gt;Here's the code : &lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
feature.attributes={OBJECTID:gr.attributes.OBJECTID,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RESP_PERQ:strRespPerq,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RESULT:strResultatF,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NBR_PLANTS:strNbrPlant,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RAISON:strRaison,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CONFUSION:strConfusion};

featureLayerFiche.applyEdits(null, [feature], null, new AsyncResponder(onResult, onFault));
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; function onResult():void
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Alert.show("ONRESULT");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; function onFault(info:Object, token:Object = null):void
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Alert.show(info.toString());
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }

// LOAD OF CODE
...
//
&amp;lt;esri:FeatureLayer id="featureLayerFiche"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mode="snapshot"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; outFields="[OBJECTID, IDFICHE, NM_MUN, UNITE, DISTRICT, DATEFICHE, RESP_PERQ, DATE_PERQ, RESULT, NBR_PLANTS, RAISON, CONFUSION]"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; selectionComplete="myFeatureLayer_selectionCompleteHandler(event)"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; editsComplete="featureLayerFiche_EditsCompleteHandler"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; editsStarting="featureLayerFiche_EditsStartingHandler"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fault="featureLayerFiche_FaultHandler"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; disableClientCaching="true"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; url="http://myserver123/ArcGIS/rest/services/geocisaille/FeatureServer/1"/&amp;gt;

// LOAD OF CODE
...
//

&lt;/PRE&gt;&lt;BR /&gt; &lt;BR /&gt;So I'm just wondering why it doesnt trigger my events if it went into the onResult function.&lt;BR /&gt;&lt;BR /&gt;*Also, I tried to place the [feature] in the delete array and it works, so I can delete feature with no problem.*&lt;BR /&gt;&lt;BR /&gt;Any help would be greatly appreciated, since there's not alot of docs about it. &lt;BR /&gt;Lmk if you need more informations.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:29:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/update-attributes-with-applyedits-need-help/m-p/38512#M904</guid>
      <dc:creator>CaseyBentz</dc:creator>
      <dc:date>2021-12-10T21:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: Update attributes with applyEdits() [NEED HELP]</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/update-attributes-with-applyedits-need-help/m-p/38513#M905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Just a wild guess here.&amp;nbsp; I would assume that you using the AsyncResponder overrides the edits complete event for the feature layer.&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;Have you tried just doing featureLayerFiche.applyEdits(null, [feature], null);&amp;nbsp; That is how I do it outside of the attribute inspector, and it works everytime.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT :: OKAY, I found out why my editsComplete + editsStarting events wouldn't trigger, I changed my code from this :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;editsComplete="featureLayerFiche_EditsCompleteHandler"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;editsStarting="featureLayerFiche_EditsStartingHandler"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;to this :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;editsComplete="featureLayerFiche_EditsCompleteHandler(event)"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;editsStarting="featureLayerFiche_EditsStartingHandler(event)"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So now I know that my edit is started and completes itself but my problem still remain, my feature aren't getting really updated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ty for your reply but unfortunetly, it doesn't work even without the AsyncResponder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried some other stuff and by using featureLayerFiche.applyEdits(null, null, [feature]); I can delete the feature but it doesn't even trigger the editsStarting neither the editsComplete.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;DOCS :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;com.esri.ags.layers.FeatureLayer.editsStarting&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dispatched when applyEdits is called, but before the edits request is sent to the server. This event is cancelable by calling event.preventDefault() which will stop the request from being sent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;com.esri.ags.layers.FeatureLayer.editsComplete&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dispatched when an applyEdits operation successfully completes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's well written, when applyEdits is called but in my case it doesn't for some unknown reason.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm also wondering why the delete is working but the update isn't, even tho now both of them successfully pass thru the applyEdits().&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2012 14:53:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/update-attributes-with-applyedits-need-help/m-p/38513#M905</guid>
      <dc:creator>SachaTousignant</dc:creator>
      <dc:date>2012-06-14T14:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Update attributes with applyEdits() [NEED HELP]</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/update-attributes-with-applyedits-need-help/m-p/38514#M906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Btw, I tried to put the AsyncResponder with the events of editing and they all trigger.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, I'm thinking that my updating problem is coming from the attributes. I'm trying to change only a few of them but maybe the array needs all fields? Or maybe in a certain order? I'm still working on that.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2012 15:08:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/update-attributes-with-applyedits-need-help/m-p/38514#M906</guid>
      <dc:creator>SachaTousignant</dc:creator>
      <dc:date>2012-06-14T15:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: Update attributes with applyEdits() [NEED HELP]</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/update-attributes-with-applyedits-need-help/m-p/38515#M907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sacha,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can change the UI of the components by customizing their skins. See:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/flex-api/concepts/index.html#/Styling_and_skinning_overview/017p0000001s000000/"&gt;http://resources.arcgis.com/en/help/flex-api/concepts/index.html#/Styling_and_skinning_overview/017p0000001s000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can update a date field by making the attribute value be a Date or a Number.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You should be getting the events whether you use a responder or not. Are you testing with a debug Flash Player? If not, you won't see the any runtime errors.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The onResult signature should be like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;function myResultFunction(result:Object, token:Object = null):void&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can also type the result as a FeatureEditResults class. You can check each FeatureEditResult to see if "success" is true or not. You can also use a tool like HttpFox or Charles Proxy to watch the network traffic and see what the response from the server is.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This sample may be helpful:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/flex-api/samples/index.html#/Edit_without_Editor/01nq00000043000000/"&gt;http://resources.arcgis.com/en/help/flex-api/samples/index.html#/Edit_without_Editor/01nq00000043000000/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2012 15:08:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/update-attributes-with-applyedits-need-help/m-p/38515#M907</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2012-06-14T15:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: Update attributes with applyEdits() [NEED HELP]</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/update-attributes-with-applyedits-need-help/m-p/38516#M908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Sacha,&lt;BR /&gt;&lt;BR /&gt;You can change the UI of the components by customizing their skins. See:&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/flex-api/concepts/index.html#/Styling_and_skinning_overview/017p0000001s000000/"&gt;http://resources.arcgis.com/en/help/flex-api/concepts/index.html#/Styling_and_skinning_overview/017p0000001s000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You can update a date field by making the attribute value be a Date or a Number.&lt;BR /&gt;&lt;BR /&gt;You should be getting the events whether you use a responder or not. Are you testing with a debug Flash Player? If not, you won't see the any runtime errors.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;The onResult signature should be like:&lt;BR /&gt;function myResultFunction(result:Object, token:Object = null):void&lt;BR /&gt;&lt;BR /&gt;You can also type the result as a FeatureEditResults class. You can check each FeatureEditResult to see if "success" is true or not. You can also use a tool like HttpFox or Charles Proxy to watch the network traffic and see what the response from the server is.&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;This sample may be helpful:&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/flex-api/samples/index.html#/Edit_without_Editor/01nq00000043000000/"&gt;http://resources.arcgis.com/en/help/flex-api/samples/index.html#/Edit_without_Editor/01nq00000043000000/&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This have been really useful, I now know that the update operation fails due to success = false and the error message is : Error: Update for the object was not attempted. Object may not exist.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To be quite honest, I have no idea where to go from that error. I don't get why it's not even attempting to update it, while the object clearly exists.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2012 15:50:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/update-attributes-with-applyedits-need-help/m-p/38516#M908</guid>
      <dc:creator>SachaTousignant</dc:creator>
      <dc:date>2012-06-14T15:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: Update attributes with applyEdits() [NEED HELP]</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/update-attributes-with-applyedits-need-help/m-p/38517#M909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'd double-check the request to make sure the right object id is being sent.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2012 15:55:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/update-attributes-with-applyedits-need-help/m-p/38517#M909</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2012-06-14T15:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: Update attributes with applyEdits() [NEED HELP]</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/update-attributes-with-applyedits-need-help/m-p/38518#M910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I'd double-check the request to make sure the right object id is being sent.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't think that's my problem since :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1st : I can delete features.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2nd : The error message clearly says that he's not EVEN attempting to update it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I find this really sad since I don't see anyone who posted this error before so I'm kinda stuck.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Even tho, I checked and the right OBJECTID is sent + I checked the database to see if it was there. And it's all ok.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Well this is the way I proceed : &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;feature.attributes={OBJECTID:gr.attributes.OBJECTID, NBR_PLANTS:strNbrPlant};&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;featureLayerFiche.applyEdits(null, [feature], null, new AsyncResponder(onResult, onFault));&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2012 16:11:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/update-attributes-with-applyedits-need-help/m-p/38518#M910</guid>
      <dc:creator>SachaTousignant</dc:creator>
      <dc:date>2012-06-14T16:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: Update attributes with applyEdits() [NEED HELP]</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/update-attributes-with-applyedits-need-help/m-p/38519#M911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does it work with the Editor component? See:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/flex-api/samples/index.html#/Default_Editor/01nq0000001r000000/"&gt;http://resources.arcgis.com/en/help/flex-api/samples/index.html#/Default_Editor/01nq0000001r000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If yes, what is the difference in the HTTP requests?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2012 16:23:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/update-attributes-with-applyedits-need-help/m-p/38519#M911</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2012-06-14T16:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: Update attributes with applyEdits() [NEED HELP]</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/update-attributes-with-applyedits-need-help/m-p/38520#M912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Does it work with the Editor component? See:&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/flex-api/samples/index.html#/Default_Editor/01nq0000001r000000/"&gt;http://resources.arcgis.com/en/help/flex-api/samples/index.html#/Default_Editor/01nq0000001r000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If yes, what is the difference in the HTTP requests?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, it works with editor, tho I gave up on it since I had no control over the interface.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't really know how to check the HTTP requests, is it with HTTPFox or Charle proxy like you said?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2012 16:44:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/update-attributes-with-applyedits-need-help/m-p/38520#M912</guid>
      <dc:creator>SachaTousignant</dc:creator>
      <dc:date>2012-06-14T16:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: Update attributes with applyEdits() [NEED HELP]</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/update-attributes-with-applyedits-need-help/m-p/38521#M913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Yes, it works with editor, tho I gave up on it since I had no control over the interface.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you familiar with the skins of Editor and other components?&amp;nbsp; It gives you a lot of control over the the UI...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2012 16:56:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/update-attributes-with-applyedits-need-help/m-p/38521#M913</guid>
      <dc:creator>BjornSvensson</dc:creator>
      <dc:date>2012-06-14T16:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: Update attributes with applyEdits() [NEED HELP]</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/update-attributes-with-applyedits-need-help/m-p/38522#M914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Are you familiar with the skins of Editor and other components?&amp;nbsp; It gives you a lot of control over the the UI...&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Really not but, I'm feeling like I'll have to get used to it... since I'm having weird error with my applyEdits()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But for examples, can you do the following : &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1-Field inspector enabled but not editable?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2-Field inspector disabled but only the textinput, not the label with it and it's container?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3-Program so you can change a certain combobox, it disables another field inspector?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4-Easy to customize the interface as much as the designer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I feel like it's gonna be tough to work around all thoses, and I'd like to do way more than just thoses 4 points.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd really prefer that my update works, it'd be already all done..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another reason why I really wanna do with applyEdits() is because of the fact that it seems like ARCGIS API for Flex isn't supporting having multiple editors at once, on 2 different feature layer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2012 16:59:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/update-attributes-with-applyedits-need-help/m-p/38522#M914</guid>
      <dc:creator>SachaTousignant</dc:creator>
      <dc:date>2012-06-14T16:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: Update attributes with applyEdits() [NEED HELP]</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/update-attributes-with-applyedits-need-help/m-p/38523#M915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Yes, it works with editor, tho I gave up on it since I had no control over the interface.&lt;BR /&gt;I don't really know how to check the HTTP requests, is it with HTTPFox or Charle proxy like you said?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, or with Fiddler, etc.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2012 20:11:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/update-attributes-with-applyedits-need-help/m-p/38523#M915</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2012-06-14T20:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: Update attributes with applyEdits() [NEED HELP]</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/update-attributes-with-applyedits-need-help/m-p/38524#M916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Yes, or with Fiddler, etc.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ok, i'll try it and keep you guys updated!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 12:26:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/update-attributes-with-applyedits-need-help/m-p/38524#M916</guid>
      <dc:creator>SachaTousignant</dc:creator>
      <dc:date>2012-06-15T12:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: Update attributes with applyEdits() [NEED HELP]</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/update-attributes-with-applyedits-need-help/m-p/38525#M917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This problem is now solved! TY alot Dasa Paddock for your help!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With Fiddler2, I saw that my objectID in the result was at random, a number between -10000 and 10000.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It happened because I had : "OBJECTID" : "24" instead of : "OBJECTID" : 24&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I didn't notice my OBJECTID was in a string due to graphicVariable.attributes.OBJECTID which is a string.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thx again everyone!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 13:05:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/update-attributes-with-applyedits-need-help/m-p/38525#M917</guid>
      <dc:creator>SachaTousignant</dc:creator>
      <dc:date>2012-06-15T13:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: Update attributes with applyEdits() [NEED HELP]</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/update-attributes-with-applyedits-need-help/m-p/38526#M918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for your solution.I have solved my problem which perplexes&amp;nbsp; me all the afternoon.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't understand why the 'OBJECTID' changed to&amp;nbsp; string yet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry for my bad english ,In China I don't see the same problem solution in Chinese Web,thank you again!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2014 06:21:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/update-attributes-with-applyedits-need-help/m-p/38526#M918</guid>
      <dc:creator>JFJF</dc:creator>
      <dc:date>2014-02-12T06:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: Update attributes with applyEdits() [NEED HELP]</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/update-attributes-with-applyedits-need-help/m-p/38527#M919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Example 1&lt;/SPAN&gt; :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;var map = new Map("map", {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; basemap: "dark-gray",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; zoom: 3,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; });&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&lt;SPAN&gt; layer = new FeatureLayer("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fsampleserver6.arcgisonline.com%2Farcgis%2Frest%2Fservices%2FDamageAssessment%2FFeatureServer%2F0" rel="nofollow" target="_blank"&gt;http://sampleserver6.arcgisonline.com/arcgis/rest/services/DamageAssessment/FeatureServer/0&lt;/A&gt;&lt;SPAN&gt;");&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;attributes = { objectid: 119369, typdamage: "Update successfully" };&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; feature = new Graphic( null, null, attributes );&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;map.addLayer(layer);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; map.&lt;STRONG&gt;onLayerAddResult&lt;/STRONG&gt; = () =&amp;gt; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; layer.applyEdits(null, [feature], null,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; function (add, update, del) { &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; console.log('success', update);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; }); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; };&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Exemple 2&lt;/SPAN&gt; :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;var map = new Map("map", {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; basemap: "dark-gray",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; zoom: 3,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; });&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&lt;SPAN&gt; layer = new FeatureLayer("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fsampleserver6.arcgisonline.com%2Farcgis%2Frest%2Fservices%2FDamageAssessment%2FFeatureServer%2F0" rel="nofollow" target="_blank"&gt;http://sampleserver6.arcgisonline.com/arcgis/rest/services/DamageAssessment/FeatureServer/0&lt;/A&gt;&lt;SPAN&gt;");&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;attributes = { objectid: 119369, typdamage: "Update successfully" };&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; feature = new Graphic( null, null, attributes );&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;map.addLayer(layer);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&lt;STRONG&gt;setTimeout&lt;/STRONG&gt;(() =&amp;gt; {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;layer.applyEdits(null, [feature], null,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; function (add, update, del) { &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; console.log('success', update);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; },&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; function (error) { &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; console.log('error applyEdits \n', error);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; });&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;}, 2000);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bertrand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2017 08:30:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/update-attributes-with-applyedits-need-help/m-p/38527#M919</guid>
      <dc:creator>BertrandLAURANCIN</dc:creator>
      <dc:date>2017-12-20T08:30:39Z</dc:date>
    </item>
  </channel>
</rss>

