Select to view content in your preferred language

Editor Widget (Attribute update issue)

1476
10
09-06-2011 06:20 AM
JerryBiedenbender
New Contributor
Hello,

    I am using the editor widget in my silverlight application and am having a small issue with updating attributes. I can update every field except for the field that the symbology is based on. Does anyone know how to correct this issue?

Thanks,
Jerry
0 Kudos
10 Replies
JenniferNery
Esri Regular Contributor
I am not able to reproduce the issue on the SDK sample: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#ToolkitEditorWidget. If you click on any point feature, you can update "type" field and the graphic.Symbol updates.

Is the field in your sample showing as read-only? Does the feature service define it as Editable=False?
0 Kudos
JerryBiedenbender
New Contributor
The field is set to "Editable". I have that field set up as a domain so I can have a pick list. Would that cause the problem? I also have another field set up with a pick list and there are no problems editing that one. Only the one that my symbology is based on. I just rebuilt my project from scratch and still have the same problem. If I can provide any more information that might help please let me know.

See attached for my rest service page information.

Thanks,
Jerry
0 Kudos
JerryBiedenbender
New Contributor
I just tested the editing with my symbology based on a field that does not have a domain set up and it worked just fine. Is there a special way to set up my domain or is there a setting that I need to change to make using a domain possible?

Thanks,
Jerry
0 Kudos
JenniferNery
Esri Regular Contributor
You can also try out this sample: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#ToolkitFeatureDataForm. If you visit the feature service REST end point, you can see that "req_type" is the field used in UniqueValueRenderer, Type ID Field and Types. In the sample, the symbology change as you modify the "Request Type."
0 Kudos
JerryBiedenbender
New Contributor
This editor widget also lets you edit the field that the symbology is based on and also changes the symbology when this field is edited. http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#ToolkitEditorWidget This is the one i'm using and I cannot edit the field if it is set up with a pick list. In the example there is a pick list set up and it works. Is there a way I'm suppose to set up my pick list?

Jerry
0 Kudos
JenniferNery
Esri Regular Contributor
What version of the API are you using? FeatureDataForm in v2.2 was updated to display a ComboBox and treat type ID fields as choice list. The Type ID Field "type" is also used in Feature Types/Templates. http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Fire/Sheep/FeatureServer/0 Kindly see attached.
0 Kudos
JerryBiedenbender
New Contributor
Jennifer,

   It turn out I was using version 2.1, I upgraded to 2.2 and now the symbology field can be changed. It is still a little buggy. It will not let me edit anything unless there is data in the "employee" field. The problem here is when I add a new point it will also not allow me to choose an employee in the "employee" field because it starts off null. So the only ones that I can edit are the assets that already existed with an employee.

What do you think the problem could be?

Is there a way that I could add "choose employee" under the domain list and make it default so it is pre-populated when the asset is created?

Thanks,
Jerry
0 Kudos
JenniferNery
Esri Regular Contributor
You might be hitting Nimbus bug: NIM070962 "FeatureDataForm : When the CodedValueDomain value = null cannot save changes made."

This had been fixed in v2.3 and v3.0 beta 1. If you would like to try v3.0 beta 1, you can go to http://beta.esri.com/community and join the 10.1 Beta program.
0 Kudos
JerryBiedenbender
New Contributor
Is there a way to set it to have a default employee so I do not have the null issue?

Jerry
0 Kudos