﻿<?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?)  » Problem Setting ParentRelationships</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Mon, 01 Jun 2026 01:00:00 GMT</lastBuildDate><ttl>20</ttl><item><title>Problem Setting ParentRelationships</title><link>http://forum.strataframe.net/FindPost12040.aspx</link><description>Hi Folks&lt;/P&gt;&lt;P&gt;I have 2 tables (a&amp;nbsp;parent and&amp;nbsp;it's details tables). When I am in the BO for the details table, the ParentRelationship is set to (Not Defined) and the ParentObject is set to (None).&lt;/P&gt;&lt;P&gt;When I try to select the ParentRelationship, the "Child-Parent Relationship Editor" is displayed; however, the drop list is both empty and locked. When I click OK, nothing happens and when I click either "Add new Field Pair" or "Cancel" the dialog simply closes.&lt;/P&gt;&lt;P&gt;If I am doing something wrong, please let me know. If not, and if this is a bug, can you forward me the syntax to do this manually?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Clay</description><pubDate>Thu, 18 Oct 2007 12:19:11 GMT</pubDate><dc:creator>choyt</dc:creator></item><item><title>RE: Problem Setting ParentRelationships</title><link>http://forum.strataframe.net/FindPost12064.aspx</link><description>Glad that helped!</description><pubDate>Thu, 18 Oct 2007 12:19:11 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Problem Setting ParentRelationships</title><link>http://forum.strataframe.net/FindPost12048.aspx</link><description>Thanks Greg...yep..that answers it.</description><pubDate>Wed, 17 Oct 2007 18:14:31 GMT</pubDate><dc:creator>choyt</dc:creator></item><item><title>RE: Problem Setting ParentRelationships</title><link>http://forum.strataframe.net/FindPost12047.aspx</link><description>This error indicates that you can't set the ParentBusinessObject when you are dealing with the definition of the business object itself.  I.e. if you have a business object named CustomersBO, and you double click it in VS solution explorer, the designer opens, were you can hit F4 and view the properties.  You can't set the ParentBusinessObject here.  &lt;br&gt;
&lt;br&gt;
The ParentBusinessObject must be an [b]instance[/b] of the parent business object set in the ParentRelationship.  So you set this when you create an instance of the parent business object.  E.g. you have a form that you drop both the parent and this BO on, [i]then[/i] you can set the ParentBusinessObject.&lt;br&gt;
&lt;br&gt;
Hope that helps!</description><pubDate>Wed, 17 Oct 2007 17:21:23 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Problem Setting ParentRelationships</title><link>http://forum.strataframe.net/FindPost12043.aspx</link><description>I was finally able to set the ParentRelationship after I rebuilt the object 3 times (not sure why the first 2 didn't work but I'm happy!). Now I cannot set the ParentBusinessObject (see attached error). When I look at several other posts on here, it looks like I should be able to do this in the proprties window and I thought I could do it at some point in the past.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/d1a3826b-25e2-48c9-9bce-75b8.JPG"&gt;</description><pubDate>Wed, 17 Oct 2007 14:20:50 GMT</pubDate><dc:creator>choyt</dc:creator></item><item><title>RE: Problem Setting ParentRelationships</title><link>http://forum.strataframe.net/FindPost12042.aspx</link><description>Hi Folks&lt;/P&gt;&lt;P&gt;I manually entered this...&lt;/P&gt;&lt;P&gt;[codesnippet]MicroFour.StrataFrame.Business.BusinessParentRelationship businessParentRelationship1 = new MicroFour.StrataFrame.Business.BusinessParentRelationship();&lt;BR&gt;businessParentRelationship1.ForeignKeyField = new string[] { "FK_ID" };&lt;BR&gt;businessParentRelationship1.ParentBusinessObjectType = "BO.APP_NAME";&lt;BR&gt;businessParentRelationship1.ParentPrimaryKeyField = new string[] { "PK_ID" };&lt;BR&gt;[/codesnippet]&lt;/P&gt;&lt;P&gt;&lt;BR&gt;Unfortunatly, the information does not appear in the properties window and the parent relationship dialog still doesn't work.&lt;/P&gt;&lt;P&gt;I tried this on several other objects within my solution and none of them work; however, when I open your ChildDialogFormCSharpSample it works fine there.</description><pubDate>Wed, 17 Oct 2007 13:19:30 GMT</pubDate><dc:creator>choyt</dc:creator></item><item><title>RE: Problem Setting ParentRelationships</title><link>http://forum.strataframe.net/FindPost12041.aspx</link><description>I lied...when I click "OK", I get an error message saying "One or more relationship field pairs...."</description><pubDate>Wed, 17 Oct 2007 12:53:45 GMT</pubDate><dc:creator>choyt</dc:creator></item></channel></rss>