﻿<?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 not working</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 04:15:05 GMT</lastBuildDate><ttl>20</ttl><item><title>ChildAutoFilterOption not working</title><link>http://forum.strataframe.net/FindPost18856.aspx</link><description>Hi,&lt;br&gt;
I have problem as above. Any ideas?&lt;br&gt;
&lt;br&gt;
I have attached sample project that using latest SF library.&lt;br&gt;
&lt;br&gt;
Thank you</description><pubDate>Sun, 31 Aug 2008 03:50:09 GMT</pubDate><dc:creator>Chan</dc:creator></item><item><title>RE: ChildAutoFilterOption not working</title><link>http://forum.strataframe.net/FindPost18864.aspx</link><description>Hi,&lt;br&gt;
I have solve this by calling FilterChildRecords() after every ParentBO.Add() called. I found that in SF source code, FilterChildRecords() only been called in Save(), SaveByForm(), ChildAutoFilterOption setter method, Filter setter method and Navigate().&lt;br&gt;
&lt;br&gt;
Why doesn't it been called in Add() and DeleteCurrentRow()?&lt;br&gt;
&lt;br&gt;
Please advice.&lt;br&gt;
Thank you</description><pubDate>Sun, 31 Aug 2008 03:50:09 GMT</pubDate><dc:creator>Chan</dc:creator></item><item><title>RE: ChildAutoFilterOption not working</title><link>http://forum.strataframe.net/FindPost18863.aspx</link><description>Hi Chan,&lt;/P&gt;&lt;P&gt;I don't remember all the details about ChildAutoFilterOption, but search the forums using "ChildAutoFilterOption" and you will find messages about this.</description><pubDate>Sun, 31 Aug 2008 00:21:04 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: ChildAutoFilterOption not working</title><link>http://forum.strataframe.net/FindPost18862.aspx</link><description>Hi,&lt;br&gt;
Thank you for reply.&lt;br&gt;
&lt;br&gt;
In fact, I don't explicitly set Bo.Filter. I just let SF to manage it.&lt;br&gt;
What I want is, since my ChildBO.ParentRelationship and ParentBO.ChildAutoFilterOption have been set, it should auto filter relavent records for me.</description><pubDate>Sat, 30 Aug 2008 23:29:20 GMT</pubDate><dc:creator>Chan</dc:creator></item><item><title>RE: ChildAutoFilterOption not working</title><link>http://forum.strataframe.net/FindPost18861.aspx</link><description>Hi Chan,&lt;/P&gt;&lt;P&gt;I have not seen your posted sample project, but I do know that when you are using any filter and you are adding records, you should set the filter off before adding then re-add the filter after adding.&lt;/P&gt;&lt;P&gt;There are several post related to this issue in the forums, do a search using the Filter keyword and you will find better explanations and sample code for this kind of issue.</description><pubDate>Sat, 30 Aug 2008 21:20:44 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: ChildAutoFilterOption not working</title><link>http://forum.strataframe.net/FindPost18859.aspx</link><description>Hi,&lt;br&gt;
One thing very strange is, in BO.NewRow(), _CurrentRowIndex is always -1 even thought lnRowIndex which is 0 has been assigned to it.&lt;br&gt;
&lt;br&gt;
                '-- Set the row index to the index of the new row&lt;br&gt;
                _CurrentRowIndex = lnRowIndex&lt;br&gt;</description><pubDate>Sat, 30 Aug 2008 20:28:25 GMT</pubDate><dc:creator>Chan</dc:creator></item><item><title>RE: ChildAutoFilterOption not working</title><link>http://forum.strataframe.net/FindPost18858.aspx</link><description>Hi,&lt;br&gt;
After some debugging, I found that, when ChildBO.Add() called, ChildBO.Filter is always "1=0" even thought ParentBusinessObject is set. It cause error when I try to set default value.&lt;br&gt;
&lt;br&gt;
Any ideas? Urgent!&lt;br&gt;
&lt;br&gt;
Thank you</description><pubDate>Sat, 30 Aug 2008 20:19:13 GMT</pubDate><dc:creator>Chan</dc:creator></item></channel></rss>