﻿<?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?)  » "ChildAutoFilterOption" question</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Mon, 14 Sep 2026 15:49:34 GMT</lastBuildDate><ttl>20</ttl><item><title>"ChildAutoFilterOption" question</title><link>http://forum.strataframe.net/FindPost9654.aspx</link><description>Hi;&lt;br&gt;
&lt;br&gt;
A few questions regarding this property in BO:&lt;br&gt;
a) Should this property be set on the parentBO or childBO or both? (the help doesn't specify which one)&lt;br&gt;
&lt;br&gt;
b) By setting this property to "MatchCurrentRow", Does this mean, as the "CurrentRowIndex" in the parent BO changes, SF will automatically fills the childBO by parent's primary key?&lt;br&gt;
&lt;br&gt;
c) What if I need to call ChildBO FillByParentPrimaryKey method myslef, Do I still need to set this property?&lt;br&gt;
&lt;br&gt;
Thank you in advance!</description><pubDate>Thu, 21 Jun 2007 15:08:49 GMT</pubDate><dc:creator>Ben Hayat</dc:creator></item><item><title>RE: "ChildAutoFilterOption" question</title><link>http://forum.strataframe.net/FindPost9717.aspx</link><description>[quote]We've used both in the past, but I think we generally end up going with the "pull the children for one parent at a time" option.[/quote]&lt;br&gt;
&lt;br&gt;
After testing both cases, you're right. It's best to fetch just the record I need on demand. This project will use your ES, so I always have to think about database being remote.&lt;br&gt;
&lt;br&gt;
Thanks for confirmation!</description><pubDate>Thu, 21 Jun 2007 15:08:49 GMT</pubDate><dc:creator>Ben Hayat</dc:creator></item><item><title>RE: "ChildAutoFilterOption" question</title><link>http://forum.strataframe.net/FindPost9702.aspx</link><description>Definitely.&amp;nbsp; We've used both in the past, but I think we generally end up going with the "pull the children for one parent at a time" option.&amp;nbsp; Mainly because in our software, you're generally only working with one parent at a time, except for cases like reporting or inquiry, etc (there's no need to manage 2 patients at the same time on the same form...).</description><pubDate>Thu, 21 Jun 2007 09:41:38 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: "ChildAutoFilterOption" question</title><link>http://forum.strataframe.net/FindPost9694.aspx</link><description>Thanks Ben; So, I have the choice going either direction depending on the recordset size!</description><pubDate>Thu, 21 Jun 2007 09:29:56 GMT</pubDate><dc:creator>Ben Hayat</dc:creator></item><item><title>RE: "ChildAutoFilterOption" question</title><link>http://forum.strataframe.net/FindPost9690.aspx</link><description>I think it mostly depends upon the size of your recordset and your user's perceived latency.&amp;nbsp; If you can load up all of the records up front, the response will be faster for the duration of the maintenance of the data.&amp;nbsp; However, if load up the records as needed, you won't have the front-end hit.&amp;nbsp; In our experience, filling the child records as needed is faster (if you have an index on the foreign key of the child table, that is ;)).&amp;nbsp; But either way would work the exact same, it's just personal preference.</description><pubDate>Thu, 21 Jun 2007 09:17:42 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: "ChildAutoFilterOption" question</title><link>http://forum.strataframe.net/FindPost9675.aspx</link><description>Thanks Trent; I'm truly enjoying the power that SF offers, as I'm getting into more features.&lt;br&gt;
&lt;br&gt;
[quote]you call the FillByParentPrimaryKey method then there is no reason to even set the ChildAutoFilterOption property at this point.[/quote]&lt;br&gt;
This point cleared up my confusion. Let me ask you this, as I looked at the samples I see you mostly approach getting the children in a different way (rather using this property), which once the user lands on a specific parent record, then you fill the child only for that parent.&lt;br&gt;
&lt;br&gt;
As a rule of thumb, which is a preferred way:&lt;br&gt;
&lt;br&gt;
1) Retrieving children per parent: &lt;br&gt;
(pro) This option fetches small number of records from the server.&lt;br&gt;
(Con) in 3-tier too many round trips to the server&lt;br&gt;
&lt;br&gt;
2) Retrieving all children:&lt;br&gt;
(Pro) A  lot less round trips to the server&lt;br&gt;
(con) Heavy up front load, and possibly could use up too much client's memory.&lt;br&gt;
&lt;br&gt;
Any suggestion or guidelines is appreciated!&lt;br&gt;
&lt;br&gt;
Thanks!</description><pubDate>Wed, 20 Jun 2007 09:53:14 GMT</pubDate><dc:creator>Ben Hayat</dc:creator></item><item><title>RE: "ChildAutoFilterOption" question</title><link>http://forum.strataframe.net/FindPost9674.aspx</link><description>[quote]Should this property be set on the parentBO or childBO or both? (the help doesn't specify which one)&lt;BR&gt;[/quote]&lt;/P&gt;&lt;P&gt;You will set this on the parent BO.&lt;/P&gt;&lt;P&gt;[quote]By setting this property to "MatchCurrentRow", Does this mean, as the "CurrentRowIndex" in the parent BO changes, SF will automatically fills the childBO by parent's primary key?&lt;BR&gt;[/quote]&lt;/P&gt;&lt;P&gt;It means that only child records that belong to the current record on the parent BO will be filtered.&amp;nbsp; So if the parent BO has a PK value of 3, let's say, then any child records whose foreign key matches a value of 3 will be fitlered.&amp;nbsp; &lt;/P&gt;&lt;P&gt;[quote] What if I need to call ChildBO FillByParentPrimaryKey method myslef, Do I still need to set this property?&lt;BR&gt;[/quote]&lt;/P&gt;&lt;P&gt;The ChildAutoFilter property only filters the records in the child BO that have already been retrieved from the server.&amp;nbsp; So if you call the FillByParentPrimaryKey method then there is no reason to even set the ChildAutoFilterOption property at this point.</description><pubDate>Wed, 20 Jun 2007 09:29:13 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>