﻿<?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 » Issues  » Parent BO error when Child BO present</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 17:44:49 GMT</lastBuildDate><ttl>20</ttl><item><title>Parent BO error when Child BO present</title><link>http://forum.strataframe.net/FindPost4441.aspx</link><description>I have a form with three BOs on it. One parent and two children. In the FormLoad event handler I have a call to one of the parent BO's fill methods:&lt;br&gt;
&lt;br&gt;
me.ProjectProcessBO1.FillByProject(projectID)&lt;br&gt;
&lt;br&gt;
In the fill method, I'm (for now) just using a sql statement:&lt;br&gt;
&lt;br&gt;
dim sql as string&lt;br&gt;
sql = "Select * From tblProjectProcess Where ProjectID = " &amp; projectID &lt;br&gt;
return me.FillDataTable(sql)&lt;br&gt;
&lt;br&gt;
If I set the parent BO on both child objects, I get an error on the FillDataTable call (see below). If only one parent is set, then it works (either one, just so long as it is only one). ProjectProcessID is the PK for the table (and the FK for the two child tables).  Note, I'm not calling anything with the children (in my code). This is happening when the parent loads.&lt;br&gt;
&lt;br&gt;
Any ideas as to what is occurring? &lt;br&gt;
&lt;br&gt;
Here is the error text:&lt;br&gt;
&lt;br&gt;
SyntaxErrorException&lt;br&gt;
	Syntax error: Missing operand after 'ProjectProcessID' operator.&lt;br&gt;
&lt;br&gt;
Source     : System.Data&lt;br&gt;
&lt;br&gt;
Stack Trace:&lt;br&gt;
   at System.Data.ExpressionParser.Parse()&lt;br&gt;
   at System.Data.DataExpression..ctor(DataTable table, String expression, Type type)&lt;br&gt;
   at System.Data.DataView.set_RowFilter(String value)&lt;br&gt;
   at MicroFour.StrataFrame.Business.BusinessLayer.set_Filter(String value)&lt;br&gt;
   at MicroFour.StrataFrame.Business.BusinessLayer.FilterChildRecords(BusinessLayer ChildBusinessObject)&lt;br&gt;
   at MicroFour.StrataFrame.Business.BusinessLayer.FilterChildRecords()&lt;br&gt;
   at MicroFour.StrataFrame.Business.BusinessLayer.Navigate(BusinessNavigationDirection Direction, Int32 AbsoluteIndex, Object[] PrimaryKeyValues, Boolean AttemptToCheckRules, Boolean IsRefill)&lt;br&gt;
   at MicroFour.StrataFrame.Business.BusinessLayer.OnCurrentDataTableRefilled()&lt;br&gt;
   at MicroFour.StrataFrame.Business.BusinessLayer.ChangeCurrentDataTable(DataTable NewTable, Boolean AcceptChanges, Boolean IsSharedTable)&lt;br&gt;
   at MicroFour.StrataFrame.Business.BusinessLayer.ChangeCurrentDataTable(DataTable NewTable, Boolean AcceptChanges)&lt;br&gt;
   at MicroFour.StrataFrame.Business.BusinessLayer.ChangeCurrentDataTable(DataTable NewTable)&lt;br&gt;
   at MicroFour.StrataFrame.Business.BusinessLayer.FillDataTable(String SelectStatement)&lt;br&gt;
   at RAMS_MITA_2.ProjectProcessBO.FillByProject(Int32 projectID) in C:\Projects\MyProject\ProjectProcessBO.vb:line 80&lt;br&gt;
   at RAMS_MITA_2.ProjectProcessForm.ProjectProcess_Load(Object sender, EventArgs e) in C:\Projects\MyProject\ProjectProcessForm.vb:line 111&lt;br&gt;
   at System.EventHandler.Invoke(Object sender, EventArgs e)&lt;br&gt;
   at System.Windows.Forms.Form.OnLoad(EventArgs e)&lt;br&gt;
   at MicroFour.StrataFrame.UI.Windows.Forms.BaseForm.OnLoad(EventArgs e)&lt;br&gt;
   at System.Windows.Forms.Form.OnCreateControl()&lt;br&gt;
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)&lt;br&gt;
   at System.Windows.Forms.Control.CreateControl()&lt;br&gt;
   at System.Windows.Forms.Control.WmShowWindow(Message&amp; m)&lt;br&gt;
   at System.Windows.Forms.Control.WndProc(Message&amp; m)&lt;br&gt;
   at System.Windows.Forms.ScrollableControl.WndProc(Message&amp; m)&lt;br&gt;
   at System.Windows.Forms.ContainerControl.WndProc(Message&amp; m)&lt;br&gt;
   at System.Windows.Forms.Form.WmShowWindow(Message&amp; m)&lt;br&gt;
   at System.Windows.Forms.Form.WndProc(Message&amp; m)&lt;br&gt;
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp; m)&lt;br&gt;
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp; m)&lt;br&gt;
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)&lt;br&gt;</description><pubDate>Mon, 27 Nov 2006 11:49:50 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Parent BO error when Child BO present</title><link>http://forum.strataframe.net/FindPost4776.aspx</link><description>Yes, the last update that was posted on 11/20/06 contains the fix.</description><pubDate>Mon, 27 Nov 2006 11:49:50 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Parent BO error when Child BO present</title><link>http://forum.strataframe.net/FindPost4775.aspx</link><description>Has this been fixed yet? I am having the same problem.</description><pubDate>Mon, 27 Nov 2006 11:44:55 GMT</pubDate><dc:creator>Jon Olson</dc:creator></item><item><title>RE: Parent BO error when Child BO present</title><link>http://forum.strataframe.net/FindPost4471.aspx</link><description>We probably won't release one until Friday, and it won't be a major release, just one containing bug fixes.</description><pubDate>Wed, 15 Nov 2006 08:22:43 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Parent BO error when Child BO present</title><link>http://forum.strataframe.net/FindPost4451.aspx</link><description>When is the next update?</description><pubDate>Tue, 14 Nov 2006 15:55:18 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Parent BO error when Child BO present</title><link>http://forum.strataframe.net/FindPost4447.aspx</link><description>The FilterChildRecords() method was bugged... the bug was reported some time ago and we fixed it, but appearantly, the fix was removed... probably due to some source control merge of the code file.&amp;nbsp; As the method cycles through the child business objects, the filter is recreated for each one, but the filter is not cleared in between each one.&amp;nbsp; So, if you only have one child, it works, but as soon as you add a second child into the mix, it fails on the second child filter, because the method just continues to append the new filter to the old filter (which obviously doesn't work...).&amp;nbsp; The fix will be in the next update.</description><pubDate>Tue, 14 Nov 2006 15:14:53 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>