However, I copied the codes into my web server, but when adding a point or line, it disappeared after finishing with double clicks. I am not sure why the difference as it pointed to all the same services and pages.
I had the same problem even when I used my own feature service, geometry service and a proxy page. Did anybody has the same experience or I must have missed something.
I copied every thing from the example and placed the html into my own server. I thought it should have used its own ESRI proxy page inside the code. However, I also have my own proxy page in my server, but no luck.
here are the general steps you have to follow to set up your own editing application....
1. create a map document with sde data and start an edit session to create feature templates for editing. 2. publish the map document to arcgis server with feature access capability. 3. set up a proxy and reference it in your application after confirming that it forwards web pages.
if you are able to sketch geometries in your application, but they disappear after you double-click, then you'll need to inspect the web traffic to find the applyEdits call made to ArcGIS Server. If a call through a proxy is bombing out entirely, you'll have to troubleshoot the problem there. If request is submitted to the server successfully and the server is returning an error (rather than a message indicating that the edit was made successfully), then its probably time to test the operation directly at the REST endpoint to attempt to determine what is wrong.