<?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 How to insert row into related table in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-insert-row-into-related-table/m-p/356581#M9423</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I wanted to insert rows into related table while creating feature. Iam doing this using Class Extension (IObjectClass Oncreate event). Iam able to get related tables of current feature class. but Iam not able to insert row into related tables while inserting records into related table Iam getting 'Objects in this class cannot be updaed outside an edit session'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Iam trying to insert row into related table using below code&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IRow pRow = PTable.CreateRow();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pRow.set_Value(1,10);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pRow.Store();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;can anybody help me how to solve this issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Uday&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Sep 2010 09:24:12 GMT</pubDate>
    <dc:creator>Udaya_BhaskerCheerala</dc:creator>
    <dc:date>2010-09-14T09:24:12Z</dc:date>
    <item>
      <title>How to insert row into related table</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-insert-row-into-related-table/m-p/356581#M9423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I wanted to insert rows into related table while creating feature. Iam doing this using Class Extension (IObjectClass Oncreate event). Iam able to get related tables of current feature class. but Iam not able to insert row into related tables while inserting records into related table Iam getting 'Objects in this class cannot be updaed outside an edit session'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Iam trying to insert row into related table using below code&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IRow pRow = PTable.CreateRow();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pRow.set_Value(1,10);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pRow.Store();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;can anybody help me how to solve this issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Uday&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Sep 2010 09:24:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-insert-row-into-related-table/m-p/356581#M9423</guid>
      <dc:creator>Udaya_BhaskerCheerala</dc:creator>
      <dc:date>2010-09-14T09:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert row into related table</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-insert-row-into-related-table/m-p/356582#M9424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You'll need to start an edit session on the workspace that contains the related table(s).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Sep 2010 12:51:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-insert-row-into-related-table/m-p/356582#M9424</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2010-09-14T12:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert row into related table</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-insert-row-into-related-table/m-p/356583#M9425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You'll need to start an edit session on the workspace that contains the related table(s).&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Neil,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried the above, but still Iam not able to insert.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Uday&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Sep 2010 12:21:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-insert-row-into-related-table/m-p/356583#M9425</guid>
      <dc:creator>Udaya_BhaskerCheerala</dc:creator>
      <dc:date>2010-09-15T12:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert row into related table</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-insert-row-into-related-table/m-p/356584#M9426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;do you have same error!&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if not,your problem is maybe in your Create event of your extensionclass.&amp;nbsp; When "Store" is called Create event is fire.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If your Create event is not fire, be sure your related table got same EXTCLSID of your FeatureClass, with this Create event will be call.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Sep 2010 13:45:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-insert-row-into-related-table/m-p/356584#M9426</guid>
      <dc:creator>vincentLahaye</dc:creator>
      <dc:date>2010-09-15T13:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert row into related table</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-insert-row-into-related-table/m-p/356585#M9427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My problem got solved. After "Store" I have added below line.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; pRelClass.CreateRelationship(createdObject, relatedObject);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Uday&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;do you have same error!&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;if not,your problem is maybe in your Create event of your extensionclass.&amp;nbsp; When "Store" is called Create event is fire.&lt;BR /&gt;&lt;BR /&gt;If your Create event is not fire, be sure your related table got same EXTCLSID of your FeatureClass, with this Create event will be call.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Sep 2010 08:56:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-insert-row-into-related-table/m-p/356585#M9427</guid>
      <dc:creator>Udaya_BhaskerCheerala</dc:creator>
      <dc:date>2010-09-21T08:56:13Z</dc:date>
    </item>
  </channel>
</rss>

