Editor Widget cannot update

742
5
09-15-2011 06:32 AM
HasnainYusufali
New Contributor
Hi,

I need some help with the Editor widget. I am using it with the TemplatePicker and AttributeInspector. Everything renders correctly, however, I cannot create, update or delete any of the features. I dont get any errors. I have picked the sample application that works fine, and changed the service endpoints to our FeatureSet services.

The user on the DB side that I am using has CRUD rights, and I have enabled logging on the server side, without any errors showing up.

Any ideas what could be missing?
Thanks.

Hasnain
0 Kudos
5 Replies
SiqiLi
by Esri Contributor
Esri Contributor
Here are something I think you may need to try:

1). Are you running the JS application under IIS? If not, try to put the JS app under the IIS, and then launch the application via http://<server name>/applicationName.html

2) Is the JS application on the same domain as the feature service you are using? If not, you will need the proxy page. http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp/ags_proxy.htm

3) Try to use Firebug or Fiddler to see if there is any error returned?\

4) Try the REST endpoint page to see if you can update the feature. If not, either the feature service itself has an issue or the permission issue of the SDE. Here is an sample:
    http://help.arcgis.com/en/arcgisserver/10.0/apis/rest/fsupdate.html

5) Check if ArcGISSOC account has the permission to access the data in your sde?
http://forums.arcgis.com/threads/31302-Insert-%28add%29-fails
 
http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Granting_and_revoking_privileges_on_da...
0 Kudos
HasnainYusufali
New Contributor
Hi,

Thanks for the reply. I wasnt able to edit/delete the features using the rest services, and found out that there was a problem with permissions on the database log file. After fixing that, I am now able to delete using the rest service endpoint. However, I still cannot update/add/delete from the browser. There are no errors in the log:

INFO3 Server Context released. 2011-09-20 14:43:23 LoadZone_Edit.MapServer ?
INFO2 String request succesfully processed. Response size is 23657 characters. 2011-09-20 14:43:23 LoadZone_Edit.MapServer ?
INFO3 Query has completed. 2011-09-20 14:43:23 LoadZone_Edit.MapServer ?
INFO1 There is no matching GeoTransformation. Obtained default GeoTransformation from Spatial Reference Environment. 2011-09-20 14:43:23 LoadZone_Edit.MapServer ?
INFO3 ID Count = 0, hasQueryGeometry = 1, and Whereclause = CNTY_NBR = 240 in query criteria for method: GraphicFeatureLayer.Query in Table: Load Zoned Roads. 2011-09-20 14:43:23 LoadZone_Edit.MapServer ?
INFO2 Query has started. 2011-09-20 14:43:23 LoadZone_Edit.MapServer ?
INFO2 String request received. Request size is 1289 characters. 2011-09-20 14:43:23 LoadZone_Edit.MapServer ?
INFO3 Server Context created. 2011-09-20 14:43:23 LoadZone_Edit.MapServer ?

Any other ideas? Thanks.

Hasnain
0 Kudos
HasnainYusufali
New Contributor
Hi,

I moved the services to another server, updated the proxy page, and now the features can be updated/deleted using the browser, however, it only works in IE. Does not do anything in FF, Safari, or Chrome, with no errors in the log, or Firebug.

Any ideas?
Thanks.
Hasnain
0 Kudos
SiqiLi
by Esri Contributor
Esri Contributor
Hi,

I moved the services to another server, updated the proxy page, and now the features can be updated/deleted using the browser, however, it only works in IE. Does not do anything in FF, Safari, or Chrome, with no errors in the log, or Firebug.

Any ideas?
Thanks.
Hasnain


Hmmm... weird...only works in IE? Try to clear the cache if all the browsers to see what happens. In Firebug, does the feature service applyEdits request been successfully sent out?
0 Kudos
HasnainYusufali
New Contributor
Hi,

I was able to resolve this. Turns out, I was using http://localhost/... to access the sites using the browsers which was fine in IE, but the others kept choking because the proxy page has my host name in it. I can apply all the edits from all browsers by accessing http://hostname/...

Thanks.
Hasnain
0 Kudos