﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Business Objects and Data Access (How do I?)  » Access To Deleted Rows in Business Object</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 14:19:02 GMT</lastBuildDate><ttl>20</ttl><item><title>Access To Deleted Rows in Business Object</title><link>http://forum.strataframe.net/FindPost11808.aspx</link><description>Do you keep a list of deleted rows within the business object?&amp;nbsp; I found I can check the row state in CurrentDataTable.Rows but I can't locate the data. &lt;/P&gt;&lt;P&gt;Thanks,&lt;BR&gt;Tim</description><pubDate>Wed, 03 Oct 2007 09:27:25 GMT</pubDate><dc:creator>Tim Dol</dc:creator></item><item><title>RE: Access To Deleted Rows in Business Object</title><link>http://forum.strataframe.net/FindPost11816.aspx</link><description>You can access the data by either using the CurrentRow.Item("FieldName", rowVersion) and pass Original as the row version or you can go to the BOMapper and for each field on the business object you want to access, customize it and check the Allow Deleted Rows option, which will test on the row state and return the original value if the row is deleted.</description><pubDate>Wed, 03 Oct 2007 09:27:25 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Access To Deleted Rows in Business Object</title><link>http://forum.strataframe.net/FindPost11813.aspx</link><description>In my example I deleted two rows. I can see the CurrentDataTable row count value, which is correct, but I can't get at the data. I get an error accessing the&amp;nbsp;row item&amp;nbsp;'Deleted Row Information Cannot be accessed through the row'. &lt;/P&gt;&lt;P&gt;Here is a sample of my code. Am I accessing the row item information correctly?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Dim&lt;/FONT&gt;&lt;FONT size=2&gt; loRow &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;FONT size=2&gt; DataRow&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;'-- Cycle through the DataTable Rows&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#0000ff size=2&gt;For&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Each&lt;/FONT&gt;&lt;FONT size=2&gt; loRow &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;In&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Me&lt;/FONT&gt;&lt;FONT size=2&gt;.CurrentDataTable.Rows&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;If&lt;/FONT&gt;&lt;FONT size=2&gt; loRow.RowState = DataRowState.Added &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Or&lt;/FONT&gt;&lt;FONT size=2&gt; loRow.RowState = DataRowState.Deleted &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Then&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;dn.FillByPrimaryKey(loRow.Item(&lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;"wpt_DepartmentCode"&lt;/FONT&gt;&lt;FONT size=2&gt;), loRow.Item(&lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;"wpt_CategoryCode"&lt;/FONT&gt;&lt;FONT size=2&gt;))&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;If&lt;/FONT&gt;&lt;FONT size=2&gt; dn.Count &amp;gt; 0 &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Then&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Wed, 03 Oct 2007 07:50:37 GMT</pubDate><dc:creator>Tim Dol</dc:creator></item><item><title>RE: Access To Deleted Rows in Business Object</title><link>http://forum.strataframe.net/FindPost11809.aspx</link><description>They are in there unless you have cleared the BO.&amp;nbsp; By default they are filtered out and not displayed.&amp;nbsp; You can cycle through the CurrentDataTable or set the ShowDeletedRows on the BO property to True.</description><pubDate>Tue, 02 Oct 2007 20:37:29 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>