Select to view content in your preferred language

User editing of data

741
5
11-05-2010 08:34 AM
DonFreeman
Emerging Contributor
There is a nice sample at http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#ToolkitFeatureDataForm which shows how to allow a user to edit the underlying attribute data. I can make this work with my own data up to the point where the editing table opens. At that point the data is visible but not editable. What do I need to do to allow editng of my data? Is there something in the service itself, or perhaps some server permissions that need set?

Thanks
0 Kudos
5 Replies
JenniferNery
Esri Regular Contributor
If you are using MapService or if your fields have Editable property to false, then the FeatureDataForm will display all fields as read-only.
0 Kudos
DonFreeman
Emerging Contributor
Thanks Jennifer. What type of service should I be using and where do I set the fields to editable?
How do I handle server permissions?

Thanks
0 Kudos
JenniferNery
Esri Regular Contributor
0 Kudos
DonFreeman
Emerging Contributor
You can learn more about FeatureService here: http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/index.html#/What_is_a_fea...


OK, so as I read that info it says "All data must be from a single ArcSDE geodatabase." Implied meaning that it will not work with a shapefile.  So that leads me to wanting to implement the project using a related table rather than the actual attribute table. I think all I need to do this is the ability to click a feature on the map and capture the click event with the FID of the feature. I can then create my own query and bring up the needed record in a .NET datagrid. Is there a sample around that would show me how to do that?

Thanks
0 Kudos
JenniferNery
Esri Regular Contributor
This sample FeatureService includes a related table: http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/SanFrancisco/311Incidents/FeatureServer

You can edit the related table just as you would edit any feature layer. Post #2 here http://forums.arcgis.com/threads/16731-Change-value-of-FeatureDataGrid-Cell describes how it can be done.
0 Kudos