﻿<?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 » Issues  » AfterAddNew</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 12:41:08 GMT</lastBuildDate><ttl>20</ttl><item><title>AfterAddNew</title><link>http://forum.strataframe.net/FindPost19070.aspx</link><description>Guys,&lt;/P&gt;&lt;P&gt;I have a BO that has an AfterAddNew event,&amp;nbsp;in this event I set some defaults but I am finding that this is failing because the currentrowindex of the BO is -1. Is this correct?&lt;/P&gt;&lt;P&gt;I am running the 1.6.6. beta from 27th August 2008.&lt;/P&gt;&lt;P&gt;best&lt;/P&gt;&lt;P&gt;Geoff</description><pubDate>Fri, 05 Sep 2008 19:36:26 GMT</pubDate><dc:creator>Geoff Hirst</dc:creator></item><item><title>RE: AfterAddNew</title><link>http://forum.strataframe.net/FindPost19146.aspx</link><description>Yeah, I remember to use [i]that[/i] one when I'm setting up defaults at the BO level. Were I used to have a brain fart was when then doing some additional setting at the form level or beyond...The last time was finally enough pain and I remember it now!  :cool:</description><pubDate>Fri, 05 Sep 2008 19:36:26 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: AfterAddNew</title><link>http://forum.strataframe.net/FindPost19128.aspx</link><description>I can certainly see how that one would be confusing :)&amp;nbsp; That's why we made a conscious decision to put the stub for the SetDefaultValues event handler within the template of a new business object (and the CheckRulesOnCurrentRow event, too).</description><pubDate>Fri, 05 Sep 2008 16:31:04 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: AfterAddNew</title><link>http://forum.strataframe.net/FindPost19112.aspx</link><description>Glad you got it going Geoff.  And not to long ago I was using AfterAddNew to set some default values and it wouldn't work....DOH!  Glad to share the lesson!</description><pubDate>Fri, 05 Sep 2008 11:30:42 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: AfterAddNew</title><link>http://forum.strataframe.net/FindPost19079.aspx</link><description>Greg,&lt;/P&gt;&lt;P&gt;That is a real Doh! moment. Can't say why I never saw that event before. Interesting thing was that initially, it didn't solve the problem. When I did some digging I found that a childformdialog still had a legacy BOTranslation that wasn't in use but this was obviously corrupting the object creation.&lt;/P&gt;&lt;P&gt;At then end of it, issue now seems solved and many thanks for the input.&lt;/P&gt;&lt;P&gt;best&lt;/P&gt;&lt;P&gt;Geoff.</description><pubDate>Thu, 04 Sep 2008 14:44:50 GMT</pubDate><dc:creator>Geoff Hirst</dc:creator></item><item><title>RE: AfterAddNew</title><link>http://forum.strataframe.net/FindPost19074.aspx</link><description>Geoff,&lt;br&gt;
&lt;br&gt;
Try handling the SetDefaultValues event on the BO. Works much better, more reliably than AfterAddNew.</description><pubDate>Thu, 04 Sep 2008 13:52:34 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item></channel></rss>