<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic IEditEvents when editing tables in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/ieditevents-when-editing-tables/m-p/112212#M2926</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can use the IEditEvents to be notified of edits to features, but is there some way to be notified when the user in ArcMap makes changes to a table?&amp;nbsp; For example, if the user uses the Attributes window to update a field in a table, I would like to know that an update has happened.&amp;nbsp; I don't see IEditEvents_OnChangeFeature firing when I update an attribute in a table, which makes sense because it's not a feature that is changing.&amp;nbsp; What I'm looking for is something like IEditEvents_OnAnyChange, just so I know that the user is doing some kind of insert update or delete.&amp;nbsp; I'm using ArcMap 10.2.1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Jun 2016 17:35:52 GMT</pubDate>
    <dc:creator>TheodoreRakel</dc:creator>
    <dc:date>2016-06-22T17:35:52Z</dc:date>
    <item>
      <title>IEditEvents when editing tables</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/ieditevents-when-editing-tables/m-p/112212#M2926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can use the IEditEvents to be notified of edits to features, but is there some way to be notified when the user in ArcMap makes changes to a table?&amp;nbsp; For example, if the user uses the Attributes window to update a field in a table, I would like to know that an update has happened.&amp;nbsp; I don't see IEditEvents_OnChangeFeature firing when I update an attribute in a table, which makes sense because it's not a feature that is changing.&amp;nbsp; What I'm looking for is something like IEditEvents_OnAnyChange, just so I know that the user is doing some kind of insert update or delete.&amp;nbsp; I'm using ArcMap 10.2.1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2016 17:35:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/ieditevents-when-editing-tables/m-p/112212#M2926</guid>
      <dc:creator>TheodoreRakel</dc:creator>
      <dc:date>2016-06-22T17:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: IEditEvents when editing tables</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/ieditevents-when-editing-tables/m-p/112213#M2927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use IObjectClassEvents:&lt;/P&gt;&lt;P&gt;&lt;A href="http://edndoc.esri.com/arcobjects/9.2/ComponentHelp/esriGeodatabase/IObjectClassEvents_Example.htm" title="http://edndoc.esri.com/arcobjects/9.2/ComponentHelp/esriGeodatabase/IObjectClassEvents_Example.htm"&gt;IObjectClassEvents Example&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just change it to use IStandAloneTable and ITable instead of IFeatureClass:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Private WithEvents ObjectClassEvents As ObjectClassEvents&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Public Sub initEvents()&lt;/P&gt;&lt;P&gt;&amp;nbsp; Dim pMxdoc As IMxDocument&lt;/P&gt;&lt;P&gt;&amp;nbsp; Set pMxdoc = Application.Document&lt;/P&gt;&lt;P&gt;&amp;nbsp; Dim satColl As IStandaloneTableCollection&lt;/P&gt;&lt;P&gt;&amp;nbsp; Set satColl = pMxdoc.FocusMap&lt;/P&gt;&lt;P&gt;&amp;nbsp; Dim sat As IStandaloneTable&lt;/P&gt;&lt;P&gt;&amp;nbsp; Set sat = satColl.StandaloneTable(0)&lt;/P&gt;&lt;P&gt;&amp;nbsp; Dim t As ITable&lt;/P&gt;&lt;P&gt;&amp;nbsp; Set t = sat.Table&lt;/P&gt;&lt;P&gt;' Dim pFeatureLayer As IFeatureLayer&lt;/P&gt;&lt;P&gt;'&amp;nbsp; Dim pLayer As ILayer&lt;/P&gt;&lt;P&gt;'&amp;nbsp; Dim pFeatureClass As IFeatureClass&lt;/P&gt;&lt;P&gt;'&amp;nbsp; Set pLayer = pMxdoc.FocusMap.Layer(0)&lt;/P&gt;&lt;P&gt;'&amp;nbsp; Set pFeatureLayer = pLayer&lt;/P&gt;&lt;P&gt;'&amp;nbsp; Set pFeatureClass = pFeatureLayer.FeatureClass&lt;/P&gt;&lt;P&gt;&amp;nbsp; Dim pObjectClass As IObjectClass&lt;/P&gt;&lt;P&gt;'&amp;nbsp; Set pObjectClass = pFeatureClass&lt;/P&gt;&lt;P&gt;&amp;nbsp; Set pObjectClass = t&lt;/P&gt;&lt;P&gt;&amp;nbsp; Set ObjectClassEvents = pObjectClass&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Private Sub ObjectClassEvents_OnChange(ByVal obj As IObject)&lt;/P&gt;&lt;P&gt;&amp;nbsp; MsgBox "OnChange for: " &amp;amp; obj.OID&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Private Sub ObjectClassEvents_OnCreate(ByVal obj As IObject)&lt;/P&gt;&lt;P&gt;&amp;nbsp; MsgBox "OnCreate for: " &amp;amp; obj.OID&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Private Sub ObjectClassEvents_OnDelete(ByVal obj As IObject)&lt;/P&gt;&lt;P&gt;&amp;nbsp; MsgBox "OnDelete for: " &amp;amp; obj.OID&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2016 16:18:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/ieditevents-when-editing-tables/m-p/112213#M2927</guid>
      <dc:creator>JeffMatson</dc:creator>
      <dc:date>2016-06-28T16:18:46Z</dc:date>
    </item>
  </channel>
</rss>

