﻿<?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 / Business Objects and Data Access (How do I?)  / BeforeSave event not firing in 1.6.6 / 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>Sun, 20 Jul 2008 01:23:11 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: BeforeSave event not firing in 1.6.6</title><link>http://forum.strataframe.net/Topic16020-6-1.aspx</link><description>Thanks, I'll give this a try.</description><pubDate>Wed, 30 Apr 2008 18:00:04 GMT</pubDate><dc:creator>Randy Jean</dc:creator></item><item><title>RE: BeforeSave event not firing in 1.6.6</title><link>http://forum.strataframe.net/Topic16020-6-1.aspx</link><description>&lt;TABLE cellSpacing=0 cellPadding=0 width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class=smalltxt vAlign=top&gt;&lt;SPAN id=ctl02_ctlTopic_ctlPanelBar_ctlTopicsRepeater_ctl16_lblFullMessage&gt;Use the BusinessRulesChecked event.  This will get fired every time and allow you to override any broken rules (if you have that need).  But it will always fire pre-save whether there are broken rules or not.&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description><pubDate>Wed, 30 Apr 2008 17:26:10 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: BeforeSave event not firing in 1.6.6</title><link>http://forum.strataframe.net/Topic16020-6-1.aspx</link><description>Yep, looks like that is what is happening.  Checkrulesoncurrentrow in the bizobj is firing before any of the beforesave events, which sort of makes sense I suppose from a logical standpoint.  Knowing this I think I can probably find a workaround.  Not using beforesave in too many places.</description><pubDate>Wed, 30 Apr 2008 14:57:00 GMT</pubDate><dc:creator>Randy Jean</dc:creator></item><item><title>RE: BeforeSave event not firing in 1.6.6</title><link>http://forum.strataframe.net/Topic16020-6-1.aspx</link><description>I forgot to mention there are other BOs but they are not getting updated by the form so I set them all to be IncludeInFormSave = false&lt;br&gt;&lt;br&gt;Still no go.  I know the save is firing because my checkrulesoncurrentrow is firing which is telling me that my numberofsolutions is required.  Hmm... maybe this event fires before the beforesave event now...</description><pubDate>Wed, 30 Apr 2008 14:23:11 GMT</pubDate><dc:creator>Randy Jean</dc:creator></item><item><title>RE: BeforeSave event not firing in 1.6.6</title><link>http://forum.strataframe.net/Topic16020-6-1.aspx</link><description>IncludeInFormSave is true.  This actually the main BO on an SF Wizard Form.   In the Finish_Clicked i'm just calling me.save() - this BO is set as my PrimaryBusinessObject as well.  It is the parent.&lt;br&gt;&lt;br&gt;The handler is connected.  In the properties I see the method is linked and when I double click it take me to that code which has Handles MyBase.BeforeSave.&lt;br&gt;&lt;br&gt;[codesnippet]&lt;br&gt;   Private Sub DCASetupDataBO_BeforeSave(ByVal e As MicroFour.StrataFrame.Data.BeforeSaveUndoEventArgs) Handles MyBase.BeforeSave&lt;br&gt;        Dim nNumberOfSolutions As Integer = 0&lt;br&gt;        If Me.SolutionLevel1 &lt;&gt; Guid.Empty Then&lt;br&gt;            nNumberOfSolutions = nNumberOfSolutions + 1&lt;br&gt;        End If&lt;br&gt;        If Me.SolutionLevel2 &lt;&gt; Guid.Empty Then&lt;br&gt;            nNumberOfSolutions = nNumberOfSolutions + 1&lt;br&gt;        End If&lt;br&gt;        If Me.SolutionLevel3 &lt;&gt; Guid.Empty Then&lt;br&gt;            nNumberOfSolutions = nNumberOfSolutions + 1&lt;br&gt;        End If&lt;br&gt;        Me.NumberSolutions = nNumberOfSolutions&lt;br&gt;    End Sub&lt;br&gt;[/codesnippet]&lt;br&gt;&lt;br&gt;Just updated to 1.6.6 - everything builds fine and this was working prior to the update so not sure what could be going on.&lt;br&gt;&lt;br&gt;File versions are showing 1.6.5.1 on all assemblies in Strataframe version dialog.&lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;Randy&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</description><pubDate>Wed, 30 Apr 2008 14:02:52 GMT</pubDate><dc:creator>Randy Jean</dc:creator></item><item><title>RE: BeforeSave event not firing in 1.6.6</title><link>http://forum.strataframe.net/Topic16020-6-1.aspx</link><description>Edhy's questions are valid, but it appears that the handler isn't attached or the BO is not being saved.  I just setup a test and it works as it should, so let's start digging through your environment.</description><pubDate>Wed, 30 Apr 2008 10:19:33 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: BeforeSave event not firing in 1.6.6</title><link>http://forum.strataframe.net/Topic16020-6-1.aspx</link><description>Hi Randy,&lt;/P&gt;&lt;P&gt;Make sure the Business Object property IncludeInFormSave is set to True for that BO.&lt;/P&gt;&lt;P&gt;In case that does not work, please provide more detail info like this:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;What version of the SF Assemblies are you using?&lt;/LI&gt;&lt;LI&gt;How many BO are you using in this form?&lt;/LI&gt;&lt;LI&gt;Is the mentioned BO a Parent or a Child BO?&lt;/LI&gt;&lt;/UL&gt;</description><pubDate>Wed, 30 Apr 2008 10:15:58 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>BeforeSave event not firing in 1.6.6</title><link>http://forum.strataframe.net/Topic16020-6-1.aspx</link><description>I have some code in the beforesave event of one of my business objects.  I've verified the handler is still connected.  When I set a break point and fire a save on this business object, the code in event handler is not firing.  Any ideas?</description><pubDate>Wed, 30 Apr 2008 10:06:27 GMT</pubDate><dc:creator>Randy Jean</dc:creator></item></channel></rss>