Select to view content in your preferred language

Editor widget, Template picker question

627
2
09-03-2010 12:57 PM
DanDulan
Emerging Contributor
I have noticed that a feature is still created on the server if the user has closed the attribute entry form provided by the widget.
I would like to collect the attributes first, do some validation on the client and then create the feature on the server.

Any suggestions?
0 Kudos
2 Replies
JenniferNery
Esri Regular Contributor
You can refer to this forum post re: Undo editshttp://forums.arcgis.com/threads/9756-Undo-edits-of-the-EditorWidget

Basically you will need to set the FeatureLayer's AutoSave property to false and subscribe to TemplatePicker's Template Editor EditCompleted event to have control over SaveEdits(). In the event handler, you will have the chance to check the graphic attributes prior to calling SaveEdits().
0 Kudos
DanDulan
Emerging Contributor
Thanks Jennifer!
0 Kudos