Edit layer by code

Discussion created by jorge.vinagreesri-portugal-pt-esridist Employee on Dec 20, 2013
Latest reply on Jan 7, 2014 by jorge.vinagreesri-portugal-pt-esridist
Hi there
I cant seem to find an entire example on how to edit a feature layer(apply Edits) 100% by code.
In my web app no feature layer are added to the map.
So i need to instanciate the feature layer to apply the edits made by the user.
I need to set the appropriate properties and events.

Can anyone point me a direction, please?