I try to use EditorWidget control to edit layers with feature access. I can delete items from geodatabase (sql server express), but can't to save result of feature editing. If I try to edit existing feature after click "OK" button - this button becomes not active and data not saved even on the Map. If I try to edit new added feature - it normally saved on the map, but not saved in geodatabase. If I try use this layer in arcgis.com map , then all operation are performed normally and data properly saved in geodatabase.XAML: <esri:Map x:Name="MyMap" Background="White" WrapAround="true" Extent="6095000,6810000,6900000,7258000">
<i:Interaction.Triggers>
<i:EventTrigger EventName="MouseEnter">
<ei:ChangePropertyAction TargetName="myMenuItems" PropertyName="Visibility">
<ei:ChangePropertyAction.Value>
<Visibility>Collapsed</Visibility>
</ei:ChangePropertyAction.Value>
</ei:ChangePropertyAction>
</i:EventTrigger>
</i:Interaction.Triggers>
<esri:ArcGISDynamicMapServiceLayer ID="BaseLayer"
Url="http://terentievai:6080/ArcGIS/rest/services/rk/MapServer" />
<esri:ArcGISDynamicMapServiceLayer ID="chsLayer"
Url="http://terentievai:6080/ArcGIS/rest/services/chs/MapServer" />
<esri:FeatureLayer ID="myEvents" DisableClientCaching="True"
AutoSave="False"
Url="http://terentievai:6080/ArcGIS/rest/services/chs/FeatureServer/0"
OutFields="*"
Mode="OnDemand" />
</esri:Map>
<StackPanel Orientation="Vertical" HorizontalAlignment="Right" Margin="0,80,224,0" VerticalAlignment="Top" >
<esri:EditorWidget x:Name="MyEditorWidget"
Map="{Binding ElementName=MyMap}"
Width="300"
AutoSelect="False"
AlwaysDisplayDefaultTemplates="True"
GeometryServiceUrl="http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer"
ShowAttributesOnAdd="True"
Loaded="EditorWidget_Loaded"/>
</StackPanel>
and code behind:namespace Module2
{
public partial class MapControl : UserControl
{
public MapControl()
{
InitializeComponent();
}
private void ArcGISDynamicMapServiceLayer_Initialized(object sender, EventArgs e)
{
ESRI.ArcGIS.Client.ArcGISDynamicMapServiceLayer myArcGISDynamicMapServiceLayer =
MyMap.Layers["chsLayer"] as ESRI.ArcGIS.Client.ArcGISDynamicMapServiceLayer;
int[] myVisibleLayers = {0};
myArcGISDynamicMapServiceLayer.VisibleLayers = myVisibleLayers;
}
private void EditorWidget_Loaded(object sender, System.Windows.RoutedEventArgs e)
{
string[] myLayerIDs = { "myEvents" };
MyEditorWidget.LayerIDs = myLayerIDs;
}
}
}
And service details:[HTML]Layer: events (ID: 0)View In: ArcGIS.com Map Name: events Display Field: name Type: Feature Layer Geometry Type: esriGeometryPoint Description: Definition Expression: N/A Copyright Text: Default Visibility: true MaxRecordCount: 1000Supported Query Formats: JSON, AMFMin Scale: 0Max Scale: 0Supports Advanced Queries: trueSupports Statistics: trueExtent:XMin: 6351082.909999YMin: 6816741.669999XMax: 6686624.070001001YMax: 7331495.690001001Spatial Reference: 28406 (28406) Drawing Info:Renderer:Simple Renderer:Symbol:Label: Description:Transparency: 0 Labeling Info:HasZ: false HasM: false Has Attachments: false HTML Popup Type: esriServerHTMLPopupTypeAsHTMLText Type ID Field: Fields:id ( type: esriFieldTypeInteger , alias: id , editable: false , nullable: false )status ( type: esriFieldTypeInteger , alias: status , editable: true , nullable: true )name ( type: esriFieldTypeString , alias: name , editable: true , nullable: true , length: 255 )dateTime ( type: esriFieldTypeDate , alias: dateTime , editable: true , nullable: true , length: 36 )punct ( type: esriFieldTypeDouble , alias: punct , editable: true , nullable: true )event_type ( type: esriFieldTypeInteger , alias: event_type , editable: true , nullable: true )object ( type: esriFieldTypeInteger , alias: object , editable: true , nullable: true )description ( type: esriFieldTypeString , alias: description , editable: true , nullable: true , length: 255 )region ( type: esriFieldTypeDouble , alias: region , editable: true , nullable: true )settle ( type: esriFieldTypeInteger , alias: settle , editable: true , nullable: true )control ( type: esriFieldTypeSmallInteger , alias: control , editable: true , nullable: true )dolgotaGrad ( type: esriFieldTypeInteger , alias: dolgotaGrad , editable: true , nullable: true )dolgotaMin ( type: esriFieldTypeInteger , alias: dolgotaMin , editable: true , nullable: true )dolgotaSec ( type: esriFieldTypeDouble , alias: dolgotaSec , editable: true , nullable: true )dolgP ( type: esriFieldTypeString , alias: dolgP , editable: true , nullable: true , length: 1 )shirotaGrad ( type: esriFieldTypeInteger , alias: shirotaGrad , editable: true , nullable: true )shirotaMin ( type: esriFieldTypeInteger , alias: shirotaMin , editable: true , nullable: true )shirotaSec ( type: esriFieldTypeDouble , alias: shirotaSec , editable: true , nullable: true )shirP ( type: esriFieldTypeString , alias: shirP , editable: true , nullable: true , length: 1 )harCHS ( type: esriFieldTypeInteger , alias: harCHS , editable: true , nullable: true )infSorce ( type: esriFieldTypeString , alias: infSorce , editable: true , nullable: true , length: 255 )mashtab ( type: esriFieldTypeInteger , alias: mashtab , editable: true , nullable: true )data_loc ( type: esriFieldTypeDate , alias: data_loc , editable: true , nullable: true , length: 36 )data_likv ( type: esriFieldTypeDate , alias: data_likv , editable: true , nullable: true , length: 36 )X ( type: esriFieldTypeDouble , alias: X , editable: true , nullable: true )Y ( type: esriFieldTypeDouble , alias: Y , editable: true , nullable: true )ObjectID ( type: esriFieldTypeOID , alias: ObjectID , editable: false , nullable: false )Templates:Name: eventsDescription: Prototype:id: 0Drawing Tool: esriFeatureEditToolPointCapabilities: Create,Delete,Query,Update,Uploads,EditingSync Can Return Changes: falseIs Data Versioned: falseSupports Rollback On Failure: trueSupported Operations: Query Apply Edits Add Features Update Features Delete Features Generate Renderer Return Updates[/HTML]What could be wrong?