Select to view content in your preferred language

what's silverlight's equivalent to Flex FeatureLayer's applyEdits?

621
2
02-24-2011 01:25 PM
SteveLi
Emerging Contributor
I am buidling a customized silverlight web editing app and I need a similiar function to

Flex Featurelayer:
public function applyEdits(adds:Array, updates:Array, deletes:Array, responder:IResponder = null):AsyncToken

I couldn't find a such method in silverlight featurelayer class.  Can someone give suggestion on how to achieve the same result in silverlight?

Thanks.
0 Kudos
2 Replies
JenniferNery
Esri Regular Contributor
The SL API equivalent method is FeatureLayer.SaveEdits() http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.FeatureLay....

As you can see, they don't have the same signature. This is because internally, the API would already know which edits you are trying to save, whether you've added/removed graphics, updated graphics' geometry and/or attributes. SaveEdits() will call an internal method EditTask.ApplyEdits() that accepts the same parameter as Flex counterpart.
0 Kudos
SteveLi
Emerging Contributor
Thanks for the quick reply and great answer.
0 Kudos