Select to view content in your preferred language

Edit Feature Layer Troubles

2916
13
09-05-2012 11:32 AM
BrandonVan_Horn
Regular Contributor
I am using the attribute inspector to try and edit a point feature class. I am getting some errors currently.
Onload:
[ATTACH=CONFIG]17503[/ATTACH]
and after I change some of the attributes:
[ATTACH=CONFIG]17504[/ATTACH]
This error repeats (7) time per attribute changed or if I hit the save button

My proxy.config files appears to be functioning properly after I manualy set the location of the proxy file.

The funny part about the whole thing is the "delete" feature button deletes the feature with no problem. Do you have any suggestions on how to fix this?

I will happy attach my code if you want to look at it.

Thanks for your time.
0 Kudos
13 Replies
BrandonVan_Horn
Regular Contributor
i'm not sure i understand what you're doing onAttributeChange
I am attempting to save the attribute on every change because the save was not working.

why write the feature to JSON?

To be honest with you this came from the update manger, not to sure.

why load both the editor widget and the attribute inspector?
are you confident that your implementation of the undomanager isn't causing the problem?

I tried the editor widget first, it didn't function the way I was wanting it to.(It still did not update the feature). The editor widget is commented out now, but I left the code there just in case I wanted to use it later. I can take the undomanager out it is not nessacary right now.

a good way to check would be to try updating the feature without the callback
I can try this to.

Just a note the service was down for a little bit. My feature class is a Point Z shape style so I added a default value for the Z to the service. It is up now. Thanks for all the great info.
0 Kudos
BrandonVan_Horn
Regular Contributor
I have simplified my app and implemented the suggestions previously given. I have also projected my point feature class into WebM, Changed my feature class to a regular point shape file with no Z values.
In my rest server I can query via (Post)
I can delete features
I can not:

    add a feature via Json

    update feature

    apply edits


      I recieve error code 400 Invaliad graphic features, invalid parameters

Do you have any other suggestions for me to try?

Again thank you for your time.
0 Kudos
by Anonymous User
Not applicable
Original User: vanhornsky

Ok I got it working.


  • This morning I gave permissions to my ArcGIS WebServices account to read and write to the workgroup



  • I ended up unversioning my point feature class. Then I set my map service layer to work like this by this help document

  •      http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Configuring_an_ArcMap_edit_session_to_...


  • The other problem I had was something that I did. I was trying to fill the contents of a date field with a javascript code for the last update date. I took this line of code


  • feature.attributes.LASTUPDATED = new Date();


    out and it works fine now. Thanks for the help.
0 Kudos
by Anonymous User
Not applicable
Original User: jgravois

i'm glad to hear it.  🙂
0 Kudos