﻿<?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?)  » Parent child bo's edit records</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 07 Apr 2026 22:56:16 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Parent child bo's edit records</title><link>http://forum.strataframe.net/FindPost6022.aspx</link><description>[quote]When ChildBo.Add() called, ParentBO.PK is still null.&lt;BR&gt;[/quote]&lt;/P&gt;&lt;P&gt;Then you have one of two issues.&amp;nbsp; First, you have set the AllowNullValuesOnNewRow property on the business object to True.&amp;nbsp; Otherwise you will NEVER have a NULL value on a BO when a new record is created.&amp;nbsp; Second, if you have a primary key defined on the table, and the PrimaryKeyIsAutoIncrementing property is set to True, this value will be automatically managed for you.&amp;nbsp; Until saved to the server, the PK values will be negative numbers.&lt;/P&gt;&lt;P&gt;[quote]Update FK during BeforeSave event?[/quote]&lt;/P&gt;&lt;P&gt;No.&amp;nbsp; StrataFrame will manage this for you automatically if you setup the relationships.&amp;nbsp; On the child BO, set the ParentRelationship property.&amp;nbsp; Once dropped on the form, set the ParentBusinessObject property to the appropriate parent BO and the FK value will be managed for you.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; This is shown in many of the samples.&amp;nbsp; I recommend looking at the Sample CRM application sample that was installed with StrataFrame.</description><pubDate>Mon, 22 Jan 2007 08:56:58 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>Parent child bo's edit records</title><link>http://forum.strataframe.net/FindPost4655.aspx</link><description>I have a form with two tables that have a parent child relationship. I also have added the maintenance toolstrip. When I use the navigation buttons both tables update the fields as I would expect. When I select edit though it only edits the parent table? Can I have it automatically have the child edit as well.</description><pubDate>Mon, 22 Jan 2007 08:56:58 GMT</pubDate><dc:creator>Jon Olson</dc:creator></item><item><title>RE: Parent child bo's edit records</title><link>http://forum.strataframe.net/FindPost6018.aspx</link><description>Hi,&lt;br&gt;
I tried this approach to add records. But I hit error when save. It is caused by &lt;br&gt;
&lt;br&gt;
1. My ParentBO is PKIsAutoIncremented = true&lt;br&gt;
2. When ChildBo.Add() called, ParentBO.PK is still null.&lt;br&gt;
&lt;br&gt;
So, what is your suggestion? Update FK during BeforeSave event? Or any better way to do this?&lt;br&gt;
&lt;br&gt;
Thank you</description><pubDate>Sun, 21 Jan 2007 21:43:37 GMT</pubDate><dc:creator>Chan</dc:creator></item><item><title>RE: Parent child bo's edit records</title><link>http://forum.strataframe.net/FindPost4668.aspx</link><description>No problem.</description><pubDate>Mon, 20 Nov 2006 16:08:05 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Parent child bo's edit records</title><link>http://forum.strataframe.net/FindPost4666.aspx</link><description>okay that worked thanks for the quick reply</description><pubDate>Mon, 20 Nov 2006 16:07:29 GMT</pubDate><dc:creator>Jon Olson</dc:creator></item><item><title>RE: Parent child bo's edit records</title><link>http://forum.strataframe.net/FindPost4664.aspx</link><description>What is the value of IncludeInFormEdit on the form, and IncludeInFormEdit of the child busines object?&lt;/P&gt;&lt;P&gt;It should work if you set the IncludeInFormEdit of the form to AllBusinessObjects or set it to DeterminedByBusinessObject and set the IncludeInFormEdit of the child business object to True.</description><pubDate>Mon, 20 Nov 2006 16:00:22 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Parent child bo's edit records</title><link>http://forum.strataframe.net/FindPost4662.aspx</link><description>I have all those set but it still doesnt work.</description><pubDate>Mon, 20 Nov 2006 15:58:29 GMT</pubDate><dc:creator>Jon Olson</dc:creator></item><item><title>RE: Parent child bo's edit records</title><link>http://forum.strataframe.net/FindPost4659.aspx</link><description>Yes.&amp;nbsp; Set the Form Include properties and the include properties on the business objects.&amp;nbsp; Read the help topic in the StrataFrame Help: Business Layer -&amp;gt; Configuring a Business Object -&amp;gt; Form Include Settings</description><pubDate>Mon, 20 Nov 2006 15:41:07 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>