﻿<?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?)  » BeforeDelete event  &amp; AutoDeleteMessage</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 20:19:57 GMT</lastBuildDate><ttl>20</ttl><item><title>BeforeDelete event  &amp; AutoDeleteMessage</title><link>http://forum.strataframe.net/FindPost1516.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’m using the AutoDeleteMessageConformation feature on a SF maint form. What I’ve found is that the BeforeDelete event on the primary BO is raised before the AutoDeleteMessageConformation message on the form (I’m letting the form call delete on the BO). &lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;Is this the way it is designed to work? I think it would be more useful to have the message raised first and if the user cancels the delete, not raise the BeforeDelete event on&amp;nbsp;the BO. &amp;nbsp;&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;/SPAN&gt;</description><pubDate>Wed, 14 Jun 2006 09:30:56 GMT</pubDate><dc:creator>Larry Caylor</dc:creator></item><item><title>RE: BeforeDelete event  &amp; AutoDeleteMessage</title><link>http://forum.strataframe.net/FindPost1534.aspx</link><description>Glad to help! :)</description><pubDate>Wed, 14 Jun 2006 09:30:56 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: BeforeDelete event  &amp; AutoDeleteMessage</title><link>http://forum.strataframe.net/FindPost1529.aspx</link><description>Trent,&lt;/P&gt;&lt;P&gt;Thanks for the tip. That got me where I wanted go. I'll have to remember that most SF methods are overridable.&lt;/P&gt;&lt;P&gt;-Larry</description><pubDate>Tue, 13 Jun 2006 17:44:20 GMT</pubDate><dc:creator>Larry Caylor</dc:creator></item><item><title>RE: BeforeDelete event  &amp; AutoDeleteMessage</title><link>http://forum.strataframe.net/FindPost1526.aspx</link><description>Larry,&lt;P&gt;On the BO, override the OnBeforeDelete method.&amp;nbsp; Be sure to call the Base.OnBeforeDelete(...) method at the top of the method.&amp;nbsp; You will then have a properly formatted event arg that tells you whether the record is going to be deleted or not.&amp;nbsp; You can either create your own event or place your code here to do what you need.</description><pubDate>Tue, 13 Jun 2006 14:29:54 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: BeforeDelete event  &amp; AutoDeleteMessage</title><link>http://forum.strataframe.net/FindPost1522.aspx</link><description>I'm looking for&amp;nbsp;a way to execute code in the BO once I know the user has comitted to the delete (and can't cancel)&amp;nbsp;but prior to actually deleting the record from the data base. Something like a "DeleteConfirmed" event. Any suggestions?&lt;/P&gt;&lt;P&gt;-Larry</description><pubDate>Tue, 13 Jun 2006 10:52:37 GMT</pubDate><dc:creator>Larry Caylor</dc:creator></item><item><title>RE: BeforeDelete event  &amp; AutoDeleteMessage</title><link>http://forum.strataframe.net/FindPost1520.aspx</link><description>Yes, Larry, this is by design... the BeforeDelete even is used to cancel the delete, and when the end-user clicks "No" on the auto-delete confirmation, then e.Cancel is set to True.  The only way for the message to be shown before the delete confirmation message box would be for the message box to be hard-coded within the business object itself.  So, the message box is designed to be shown within an event handler of the BeforeDelete event.</description><pubDate>Tue, 13 Jun 2006 09:15:04 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>