﻿<?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 » WinForms (How do I?)  » Just to make sure I didn't miss a step...</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 02:03:28 GMT</lastBuildDate><ttl>20</ttl><item><title>Just to make sure I didn't miss a step...</title><link>http://forum.strataframe.net/FindPost10455.aspx</link><description>Hi all. Ok, say I have a Inventory header table and a Inventory detail table (a one to many relationship). I have created a maint form and have populated my InventoryHeaderBO on it (Parent) with edit fields. Now I have below a datagrid for the InventoryDetailBO (Child). &lt;br&gt;
&lt;br&gt;
I have placed InventoryHeaderBO, InventoryDetailBO and InventoryBBS ( A Business Binding Source) on my form and set them:&lt;br&gt;
&lt;br&gt;
Step 1. I set the Child-Parent Relationship in the Child BO to the proper key columns&lt;br&gt;
&lt;br&gt;
Step 2. Set the Parent BO on the child BO to the InventoryHeaderBO &lt;br&gt;
&lt;br&gt;
Step 3. Set the child BO ChildAutoFilterOption to MatchCurrentRow &lt;br&gt;
&lt;br&gt;
Step 4. In the form load I call the InventoryHeaderBO FillTop100 sub&lt;br&gt;
&lt;br&gt;
Step 5. Set the grid to the InventoryDetailBBS&lt;br&gt;
&lt;br&gt;
Now, IF I understand what I have read in the docs and in various threads, I do NOT have to make a call to FillbyParentPrimaryKey because I set The ChildAutoFilterOption to MatchCurrentRow which should automagically keep things in sync with the parent records.  Is that correct?&lt;br&gt;
&lt;br&gt;
Did I leave any steps out?&lt;br&gt;
&lt;br&gt;
If not, why isn't my form working as it should?  &lt;br&gt;
&lt;br&gt;
Regards,&lt;br&gt;
&lt;br&gt;
Robert</description><pubDate>Thu, 19 Jul 2007 22:35:28 GMT</pubDate><dc:creator>Robert Carl Johnson</dc:creator></item><item><title>RE: Just to make sure I didn't miss a step...</title><link>http://forum.strataframe.net/FindPost10481.aspx</link><description>No problem :)</description><pubDate>Thu, 19 Jul 2007 22:35:28 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Just to make sure I didn't miss a step...</title><link>http://forum.strataframe.net/FindPost10476.aspx</link><description>Thanks again Trent, that's exactly where I put it and it works great.  I appreciate all the help.&lt;br&gt;
&lt;br&gt;
Regards,&lt;br&gt;
&lt;br&gt;
Robert</description><pubDate>Thu, 19 Jul 2007 19:14:01 GMT</pubDate><dc:creator>Robert Carl Johnson</dc:creator></item><item><title>RE: Just to make sure I didn't miss a step...</title><link>http://forum.strataframe.net/FindPost10469.aspx</link><description>[quote]call in the Load event? Or where?[/quote]&lt;/P&gt;&lt;P&gt;Really the best place is in the Navigated event of the parent BO.</description><pubDate>Thu, 19 Jul 2007 15:58:02 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Just to make sure I didn't miss a step...</title><link>http://forum.strataframe.net/FindPost10468.aspx</link><description>Thanks Trent. So I was on the right track except for one thing.  Ok, so do I make the FillByParent PrimaryKey call in the Load event? Or where?&lt;br&gt;
&lt;br&gt;
Robert</description><pubDate>Thu, 19 Jul 2007 15:27:17 GMT</pubDate><dc:creator>Robert Carl Johnson</dc:creator></item><item><title>RE: Just to make sure I didn't miss a step...</title><link>http://forum.strataframe.net/FindPost10465.aspx</link><description>[quote]I do NOT have to make a call to FillbyParentPrimaryKey because I set The ChildAutoFilterOption to MatchCurrentRow which should automagically keep things in sync with the parent records. Is that correct?&lt;BR&gt;[/quote]&lt;/P&gt;&lt;P&gt;No.&amp;nbsp; This only filters records that are already populated within the BO.&amp;nbsp; You still need to call the FillByParentPrimarykey in the navigated event of the parent BO.&amp;nbsp; If you want "auto-magic" so to speak, the only control that does that is the BusinessLayerLinkManager which is used to tie link tables together.&amp;nbsp; In that case you can load the parent and it will automatically populate the children tables.&amp;nbsp; But your example is not a link table, it is just a parent/child and you still need to load the child records.</description><pubDate>Thu, 19 Jul 2007 14:42:47 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>