Select to view content in your preferred language

Bug with Editor Selection when toggling Feature layer from Snapshot to SelectionOnly

3014
11
12-07-2010 08:44 AM
MikeKaufman
Emerging Contributor
I think I have found a bug when toggling between SelectionOnly and Snapshot on a feature layer to select graphics.  I am using the editor to make spatial selections but also need the capability to make a selection by querying the attributes.  Once this toggle happens you can no long remove graphics spatially from the a set of selected graphics anymore

I have attached a WPF project using FW 4.0 and the WPF API 2.1 to demonstrate the bug

Here a the steps to repo
1. Implement the Editor to perform spatial selections
2. Toggle Selection Feature Layer to Snap shot, provide a query, and call update
3. Handle update completed and toggle Selection Feature Layer back to SelectionOnly and  where to nothing (null)
4. Try to spatially remove a graphic from the selection return from the snapshot query
5. All graphics are removed.
6. Try making new selection spatially
7. Remove a selection spatially (notice all selected graphics are removed.
Thanks in advance to anyone how can help me find a solution or workaround to this issue.
0 Kudos
11 Replies
MikeKaufman
Emerging Contributor
As long as OutFields include the ObjectId field you should be fine, you don't need to force it to "*".


I don't see ObjectId as being a valid field in a Map Service.  I ended up trying FID and it worked.
0 Kudos
JenniferNery
Esri Regular Contributor
If you go to visit the map service from your browser, get the field name with type "esriFieldTypeOID", make sure that this is part of your OutFields.
0 Kudos