Edit Layer Attributes

582
4
09-20-2011 04:40 AM
PercyJackson
New Contributor
Hi guys,

I am new to ArcGIS and Silverlight.

I am writing an application that uses the IdentifyTask function to
identify the section the user clicked on.
This then displays a datagrid containing information relevant to
the section the user clicked, such as parcel name, the town name, the zoning of that
specific parcel.

NOW, I want to be able to edit the parcel name, is this possible? How?

I am using an IDictionary object to populate the datagrid.

Thanx
0 Kudos
4 Replies
DominiqueBroux
Esri Frequent Contributor
NOW, I want to be able to edit the parcel name, is this possible? How?


Easy to answer to the first question : Yes 🙂

Now How?

First you need a feature server, since it's not possible to modify features coming from a map service.
Then at the client side, you need to use a FeatureDataGrid to modify the features.

Did you look at this featuredataform sample? It's a good starting point.
0 Kudos
PercyJackson
New Contributor
Hi Dominique,

Thank you for the answer.

So, just by pulling data from the MapService
using IdentifyTask to extract data, there is no
way to edit the data and save it just the way it is?

Even if the textboxes in the DataGrid used to display the
data is set to Mode="TwoWay"?

I am truly new to this.

I appreciate your help
0 Kudos
PercyJackson
New Contributor
Here is my problem with that sample.

I do not want to use feature layers as I would
have to rewrite my complete silverlight application
for this, plus I want ALL layers to be able to use the
IdentifyTask function.

Also using feature layers the graphic display of a feature
layer is different to that of a Dynamic Service Layer
so the visual display and look of the entire map will change.
0 Kudos
DominiqueBroux
Esri Frequent Contributor
So, just by pulling data from the MapService
using IdentifyTask to extract data, there is no
way to edit the data and save it just the way it is?


Right, no way to save any edits by using a map service.


I do not want to use feature layers as I would
have to rewrite my complete silverlight application
for this, plus I want ALL layers to be able to use the
IdentifyTask function.


You can keep the map service for displaying and identifying features (more performant anyway), and just create the feature layers on the fly to edit the features returned by your identify task.
There is a little work but it's doable.
You will need a feature server anyway.
0 Kudos