How to Set a feature layer Editable? (without Editor widget)

Discussion created by yufeizhuang on Oct 21, 2013
Latest reply on Oct 22, 2013 by JGravois-esristaff
Hi all, I'm new to arcgis JS api, now I want to update the whole records in a specific field of the feature layer, but I don't want to use the Editor Widget, is it possible? How to set the layer editable?
I did some research about using ApplyEdit() method, but still confuse about it.
Can anyone give me some hints or code examples? Thanks in advance!