AnsweredAssumed Answered

How to edit, update.. feature layer in web app

Question asked by tnsthat on Dec 11, 2014

Hello everyone!

- I'm the new ArcGIS API for javascript, I have followed exactly this example (only change my proxyUrl, geometry service, feature service):

Editor widget with simple toolbar | ArcGIS API for JavaScript 
but my feature layer after editing or creating new are not auto save!

 

- Previous, I have downloaded proxy from: Releases · Esri/resource-proxy · GitHub and follow these instructions:

 

  + I put "dotnet" folder (include proxy.ashx) in the directory  C:\inetpub\wwwroot\
     and in my app I set: esriConfig.defaults.io.proxyUrl ="http://<myservername>/dotnet/proxy.ashx";
  + In proxy.config, I set:
   

<?xml version="1.0" encoding="utf-8" ?>

<ProxyConfig allowedReferers="*"

                       mustMatch="true">

    <serverUrls>

        <serverUrl url="http://<myservername>"

               matchAll="true"/>

    </serverUrls>

</ProxyConfig>

To test proxy, I paste this link in browser, no error and view service information:
With code like the example above, my web app running normally but when editing or drawing new feature can not save it, I don't know why ? (I use ArcGIS server 10.0 and ArcSDE 10.0 for SQL server)
Who can help me, thanks !

Outcomes