Select to view content in your preferred language

How to use Editor to delete feature?

1469
0
08-30-2011 06:48 PM
weiliang
Deactivated User
I use Editor class to make online feature deletion for one feature layer, the step are

1) EditorName.DeleteSelected.Execute(null);

2) In Editor's EditCompleted event handler to catch the DeletedSelected complete event, and then execute:  EditorName.Save.Execute(null);

3) Also in Editor's EditCompleted event handler to catch the Save complete event, and then call the feature layer's update() function;

4) In the updatecomplete event handler, call the feature's layer's refesh() function.

Are the above steps correct or am I missimg something? The problem for now is sometimes after all these steps, the feature can't successfully been deleted, and some other times it is successfully deleted on the SDE database, but the feature is still displayed on the webpage.

Any suggestion is welcomed.

Wei
0 Kudos
0 Replies