Select to view content in your preferred language

Unable to save edited feature on web application.

1871
6
01-04-2012 01:17 PM
MaziyarBoustani
Emerging Contributor
I am trying to use the esri editing widget sample , just trying to change the link of feature layer to my layers.
when I click to my polygons and change its shape it will change but when I pan a map or click other polygon, the edited polygon change to its previous shape and it seams doesn't save my edits.
I also made my Geometry service and change with esri one but didn't worked. Maybe is problem with my Geometry service, I also put a screen shot of my Geometry service setting.
0 Kudos
6 Replies
MaziyarBoustani
Emerging Contributor
I got a warning before publishing my map to server. I got a screen shot which shows the error.
Is this warning related to the problem I have which I couldn't save edited features?
0 Kudos
derekswingley1
Deactivated User
Do you have a proxy page set up? What do you see when you watch your http requests via something like firebug or fiddler? Are your edit requests successful?
0 Kudos
MaziyarBoustani
Emerging Contributor
Do you have a proxy page set up? What do you see when you watch your http requests via something like firebug or fiddler? Are your edit requests successful?


Yes the proxy page is set already. But can you talk more how can I find out with Firebug. I have Firebug in my firefox but I don't know how to test the proxy with Firebug.
And what about the warning I got in ArcMAP, is it related to my problem I have?
0 Kudos
derekswingley1
Deactivated User
Yes the proxy page is set already. But can you talk more how can I find out with Firebug. I have Firebug in my firefox but I don't know how to test the proxy with Firebug.

In firebug's Net tab, you will see a POST request for each edit operation. When edits are successful, the response will show that. See attached image.

And what about the warning I got in ArcMAP, is it related to my problem I have?

No, that isn't a problem. At least not for editing. The recommended way to connect to SDE is direct connect, but using an application server (three tier) connection will not prevent you from editing.
0 Kudos
MaziyarBoustani
Emerging Contributor
I can't find the POST in my Firebug but I set the proxy same as what said in the proxy page.
1- I made a folder called proxy in the C:\inetpub\wwwroot.
2- Pasted two proxy files and change the proxy config to the same as attached image below.
3- in the code I added this line:   esri.config.defaults.io.proxyUrl = "/proxy/proxy.ashx";

but I can't find the POST proxy in the Firebug.
[ATTACH=CONFIG]11260[/ATTACH]
0 Kudos
derekswingley1
Deactivated User
All edits are done as POSTs so you should find those requests first. The easiest way to do this:
-load your page
-open firebug
-select the net tab
-click clear if there are lots of requests already logged
-edit a feature
-look at the net tab

You should see a POST.
0 Kudos