Select to view content in your preferred language

ArcMap 10 Editor extension / edit event problem

1678
1
09-09-2010 11:13 AM
RobertHauck
Deactivated User
I have IEditEvents.OnChangeFeature set to update a column with some text.  It's part of a ArcMap 10 editor extension.  The column updates correctly until I open the new docked edit attributes dialog.  Once it's open I get a "Move: An unexpected failure occurred. No rows were updated" error. I can see the text update in the dialog before the error. We are using SQL server 2005 & SDE 9.3. This worked without problems in 9.3.

Seems like a bug.  Any ideas?

Private Sub m_editEvents_OnCreateChangeFeature(ByVal obj As ESRI.ArcGIS.Geodatabase.IObject)

        'SEND ALL NEW FEATURES TO VALIDATE
        Validate(TryCast(obj, IFeature))

End Sub

Private Sub Validate(ByVal inFeature As IFeature)
        'FIRES FOR CHANGED AND CREATED ADDRESS POINTS

        Dim flds As IFields
        Dim pfeatureclass As IFeatureClass
        Dim pdataset As IDataset
        pfeatureclass = inFeature.Class
        pdataset = pfeatureclass

        'SET THE TEXT IF FEATURE IS AN ADDRESS POINT

        If pdataset.Name = "vector.DATA.Address_Points" Then   
            flds = inFeature.Fields
            'RECORD THE TEXT
            inFeature.Value(flds.FindField("TMS_GIS")) = "test text"
        End If

End Sub
0 Kudos
1 Reply
RobertHauck
Deactivated User
Forgot to mention this is an Addin.  Does anyone have an Editor Extension that updates attributes in 10?  Seems odd that my code works perfectly until the Edit Attribute dialog is opened.
0 Kudos