﻿<?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?)  » Delphi AfterPost Event Equivalent</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Sat, 30 May 2026 06:35:25 GMT</lastBuildDate><ttl>20</ttl><item><title>Delphi AfterPost Event Equivalent</title><link>http://forum.strataframe.net/FindPost30781.aspx</link><description>I&amp;nbsp;was using Delphi AfterPost Event in my Delphi applications, &lt;br/&gt;&lt;br/&gt;AfterPost event is fired after the data on the dataset is updated but before reflected to the database. If this is converted to the Business Object terminology when the business object is updated but before the update is reflected to the database. Is there an equivalent event in StrataFrame Business Objects?&lt;br/&gt;&lt;br/&gt;If not, could you please suggest a method to handle it manually?</description><pubDate>Fri, 20 Jan 2012 07:05:56 GMT</pubDate><dc:creator>lastcanary</dc:creator></item><item><title>RE: Delphi AfterPost Event Equivalent</title><link>http://forum.strataframe.net/FindPost30819.aspx</link><description>Sorry but you really need to do a quick sample application.&lt;br/&gt;When you add a record to the list view, you are simply adding a record to the BO, so the PostAdd event will trigger, if you need to track when some information changes in each textbox, then you can use the BO Field Changing events.&amp;nbsp; This would be so much easier with a sample application where you can see the outcome.</description><pubDate>Fri, 20 Jan 2012 07:05:56 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Delphi AfterPost Event Equivalent</title><link>http://forum.strataframe.net/FindPost30816.aspx</link><description>I will try to explain the situation in more details.&lt;br/&gt;&lt;br/&gt;Please try to think a form that has textbox controls and a listview control. When I add a record to the listview I would like to trigger an event so that it automatically calculates some formula using the data from the listview and other textboxes and writes the result to another textbox. &lt;br/&gt;&lt;br/&gt;Business Object BeforeSave event is triggered when I press Save button but in this case I not pressing the save button.&lt;br/&gt;&lt;br/&gt;I hope that this clarifies the problem.</description><pubDate>Fri, 20 Jan 2012 01:19:46 GMT</pubDate><dc:creator>lastcanary</dc:creator></item><item><title>RE: Delphi AfterPost Event Equivalent</title><link>http://forum.strataframe.net/FindPost30815.aspx</link><description>Hi Lascanary,&lt;br/&gt;&lt;br/&gt;[quote][b]lastcanary (1/19/2012)[/b][hr]I would like to have an event at the Business Object level. I would not like to have a listview event so that my code resides only on Business Object[/quote]&lt;br/&gt;All the events are at the business object level, not the list view.&amp;nbsp; If it is too hard to explain, I think that if you create a small sample application showing the issue it will be easier to help you find the correct event.&lt;br/&gt;&lt;br/&gt;As Trent said, the Business Object Before/After Save/Add events are the logical places to write your code.&lt;br/&gt;&lt;br/&gt;&lt;span&gt;[quote]&lt;/span&gt;&lt;span id="ctl00_ctlContentPlaceHolder_ctl00_ctlTopic_ctlPanelBar_ctlTopicsRepeater_ctl03_lblFullMessage"&gt;I&amp;nbsp;was using Delphi AfterPost Event in my Delphi applications, &lt;br/&gt;AfterPost event is fired after the data on the dataset is updated but before reflected to the database. &lt;/span&gt;&lt;span&gt;[/quote]&lt;/span&gt;&lt;br/&gt;The Business Object BeforeSave would be the equivalent to Delphi AfterPost based on your statement above.</description><pubDate>Thu, 19 Jan 2012 11:29:49 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Delphi AfterPost Event Equivalent</title><link>http://forum.strataframe.net/FindPost30814.aspx</link><description>You could use the ListView event just to call a Method on your Business Object. This way, your logic would reside in the BO.</description><pubDate>Thu, 19 Jan 2012 11:29:00 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Delphi AfterPost Event Equivalent</title><link>http://forum.strataframe.net/FindPost30813.aspx</link><description>Let me explain my situation in more details.&lt;br/&gt;&lt;br/&gt;I have a listview and I am adding child records to it. When I add a record to the listview I would like to have an event triggering at that point. In the listview the record is just added to the Business Object but it is not added to the actual database. BeforeSave event is triggered after I click on save and try to save the record to the actual database but this is too late for me.&lt;br/&gt;&lt;br/&gt;I would like to have an event at the Business Object level. I would not like to have a listview event so that my code resides only on Business Object</description><pubDate>Thu, 19 Jan 2012 10:24:55 GMT</pubDate><dc:creator>lastcanary</dc:creator></item><item><title>RE: Delphi AfterPost Event Equivalent</title><link>http://forum.strataframe.net/FindPost30799.aspx</link><description>Well, there are several events to handle this.&amp;nbsp; There is the BeforeSave event, AfterAddNew event, etc.&amp;nbsp; The BeforeSave will occur before the records are saved to the database.</description><pubDate>Thu, 12 Jan 2012 12:19:40 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>