﻿<?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?)  » Business Object - AfterSave Event</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Mon, 06 Apr 2026 20:20:43 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Business Object - AfterSave Event</title><link>http://forum.strataframe.net/FindPost11307.aspx</link><description>Hrm, it seems that the AfterSave event only gets raised when the save is a success.&amp;nbsp; I don't think it gets raised if the save is aborted due to broken rules or has an completes with exceptions.&lt;/P&gt;&lt;FONT color=#0000ff size=1&gt;&lt;P&gt;If&lt;/FONT&gt;&lt;FONT color=#000000 size=1&gt; _SaveResult = SaveUndoResult.Success &lt;/FONT&gt;&lt;FONT color=#0000ff size=1&gt;Then&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=1&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '-- Only raise the after save event if the save was a success&lt;BR&gt;&lt;/FONT&gt;&lt;FONT size=1&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; loAfterEventArg = &lt;/FONT&gt;&lt;FONT color=#0000ff size=1&gt;New&lt;/FONT&gt;&lt;FONT size=1&gt; AfterSaveUndoEventArgs(lnRowsAffected)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RaiseAfterSaveEvent(loAfterEventArg)&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=1&gt;End&lt;/FONT&gt;&lt;FONT size=1&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=1&gt;If&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Mon, 03 Sep 2007 23:56:28 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>Business Object - AfterSave Event</title><link>http://forum.strataframe.net/FindPost11110.aspx</link><description>I need to perform an automated routine after a certain field changes in one of my&amp;nbsp;BO's, so I added the AfterSave event handler to my business object and added the required code, however I've just discovered that the AfterSave event isn't getting executed. I tried placing a breakpoint in my code and it's definitely&amp;nbsp;not reaching this point.&lt;/P&gt;&lt;P&gt;I tried adding the BeforeSave event handler to my business object and it appears this is working fine.&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;BR&gt;Thanks&lt;/P&gt;&lt;P&gt;Tim</description><pubDate>Mon, 03 Sep 2007 23:56:28 GMT</pubDate><dc:creator>Tim Dol</dc:creator></item><item><title>RE: Business Object - AfterSave Event</title><link>http://forum.strataframe.net/FindPost11293.aspx</link><description>Save is on the Form.&lt;/P&gt;&lt;P&gt;Tim</description><pubDate>Sun, 02 Sep 2007 20:14:59 GMT</pubDate><dc:creator>Tim Dol</dc:creator></item><item><title>RE: Business Object - AfterSave Event</title><link>http://forum.strataframe.net/FindPost11148.aspx</link><description>Are you calling Save() on the form, or Save() directly on the business object you want to save?</description><pubDate>Tue, 28 Aug 2007 09:14:38 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>