﻿<?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 / Enhancement Requests  / BeforeDeleteEventArgs / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>forum@strataframe.net</webMaster><lastBuildDate>Thu, 20 Nov 2008 10:42:30 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: BeforeDeleteEventArgs</title><link>http://forum.strataframe.net/Topic1511-9-1.aspx</link><description>Oh, I follow what you are saying.  Thanks for pointing this out...we will get it fixed.</description><pubDate>Tue, 13 Jun 2006 14:27:33 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: BeforeDeleteEventArgs</title><link>http://forum.strataframe.net/Topic1511-9-1.aspx</link><description>I realize the the method that I referenced in my previous post in not the overload that includes the OnlyMarkAsDeleted parameter. I was just trying to point out that the documentation doesn't agree with the code. The following quote is from the developer guide.&lt;/P&gt;&lt;P class=bullet-square-blue-simple&gt;&lt;SPAN style="FONT-WEIGHT: bold; COLOR: #4169e1"&gt;"DeleteCurrentRow()&lt;/SPAN&gt;&lt;SPAN style="FONT-WEIGHT: bold"&gt; -&lt;/SPAN&gt; When this overload is called, the record being deleted is immediately removed from the server and the internal data table is updated."&lt;/P&gt;&lt;P class=bullet-square-blue-simple&gt;-Larry</description><pubDate>Tue, 13 Jun 2006 10:43:20 GMT</pubDate><dc:creator>Larry Caylor</dc:creator></item><item><title>RE: BeforeDeleteEventArgs</title><link>http://forum.strataframe.net/Topic1511-9-1.aspx</link><description>The method you placed in the previous post was not the overload that respects the "OnlyMarkAsDeleted" parameter.  By default, the record is only marked as deleted, not smoked from the server until the Save is called.  But regardless, I agree with the event arguments.  This is an easy fix and we will get it in the official release of 1.4.1.&lt;/P&gt;&lt;P&gt;Thanks for your input! :)</description><pubDate>Tue, 13 Jun 2006 09:08:31 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: BeforeDeleteEventArgs</title><link>http://forum.strataframe.net/Topic1511-9-1.aspx</link><description>Looking at the source code, it would seem that the easiest thing to do would be to add the OnlyMarkAsDeleted parameter of the DeleteCurrentRow method as a ReadOnly property on the BeforeDeleteEventArgs.&lt;/P&gt;&lt;P&gt;Also the Developer's Guide states the DeleteCurrentRow() deletes the record from the server immediately. However when I look at the source code&lt;/P&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Public&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Function&lt;/FONT&gt;&lt;FONT size=2&gt; DeleteCurrentRow() &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Integer&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;      Return&lt;/FONT&gt;&lt;FONT size=2&gt; DeleteCurrentRow(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;False&lt;/FONT&gt;&lt;FONT size=2&gt;, &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;True&lt;/FONT&gt;&lt;FONT size=2&gt;)&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;End&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Function&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#1f5080&gt;CheckSecurity is being set to False and OnlyMarkAsDeleted is being set to True.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#1f5080&gt;-Larry&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Mon, 12 Jun 2006 16:56:59 GMT</pubDate><dc:creator>Larry Caylor</dc:creator></item><item><title>RE: BeforeDeleteEventArgs</title><link>http://forum.strataframe.net/Topic1511-9-1.aspx</link><description>Good suggestion. :)</description><pubDate>Mon, 12 Jun 2006 16:35:59 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>BeforeDeleteEventArgs</title><link>http://forum.strataframe.net/Topic1511-9-1.aspx</link><description>&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;I'd like to see a property added to the BeforeDeleteEventArgs to indicate if the delete is deferred (marked as deleted) or immediate. I’d like to be able to add some code to the BO to delete related records in other tables. Since a record marked as deleted can be undone I would want to wait and delete the related records in the BeforeSave event handler of the BO. If the BO is being deleted immediately I need to delete the related records in the BeforeDelete event of the BO to avoid constraint errors.&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;-Larry&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;&lt;SPAN style="mso-spacerun: yes"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;</description><pubDate>Mon, 12 Jun 2006 16:03:16 GMT</pubDate><dc:creator>Larry Caylor</dc:creator></item></channel></rss>