﻿<?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?)  » BOTranslations using SF UserControl</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 00:17:12 GMT</lastBuildDate><ttl>20</ttl><item><title>BOTranslations using SF UserControl</title><link>http://forum.strataframe.net/FindPost18665.aspx</link><description>Hi SF Team,&lt;/P&gt;&lt;P&gt;I have created an SF User control&amp;nbsp;which contains&amp;nbsp;CampaignSalesBO (Child BO).&amp;nbsp; I have placed the user control on a SF Form which contains CampaignContactsBO (Parent BO).&amp;nbsp;&amp;nbsp;Then I&amp;nbsp;configured the BOTranslations for the user control using the wizard. When I attempt to load the form I get the following error.&amp;nbsp; I don't know what I&amp;nbsp;am doing&amp;nbsp;wrong.&amp;nbsp; &lt;/P&gt;&lt;P&gt;As always thank you for the help!&lt;/P&gt;&lt;P&gt;Jeff&lt;/P&gt;&lt;P&gt;Object of type 'AutoDialer.CampaignContactsBO' cannot be converted to type 'AutoDialer.CampaignsSalesBO'.&lt;BR&gt;&amp;nbsp; Exception (ArgumentException): Source="mscorlib"; Target=null; Tag=null; ParamName=null; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Message = "Object of type 'AutoDialer.CampaignContactsBO' cannot be converted to type 'AutoDialer.CampaignsSalesBO'."&lt;BR&gt;&amp;nbsp; Environment: ThreadIdentity="" DateTime=["2008-08-21 23:11:13.343"] ThreadName=null WindowsIdentity="STRUSS\JPagley" ThreadId="10" DomainName="AutoDialer.vshost.exe" OSVersion=["Microsoft Windows NT 5.1.2600 Service Pack 3"] MachineName="1LPJPAGLEY"&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; UserName="JPagley"&lt;BR&gt;&amp;nbsp; Remaining Stack Trace&amp;nbsp; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.RuntimeType.CheckValue(Object value, Binder binder, CultureInfo culture, BindingFlags invokeAttr)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.Reflection.RtFieldInfo.InternalSetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, CultureInfo culture, Boolean doVisibilityCheck, Boolean doCheckConsistency)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.Reflection.RtFieldInfo.SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, CultureInfo culture)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.UI.Windows.Forms.BusinessObjectTranslator.SetBusinessObjectReference(ContainerControl ParentControl, BusinessLayer SourceBusinessObject, String DestinationBusinessObjectName)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.UI.Windows.Forms.BusinessObjectTranslator.TranslateBusinessObjects(BusinessObjectTranslationCollection Translations, ContainerControl SourceContainer, ContainerControl DestinationContainer)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.UI.Windows.Forms.UserControl.TranslateBusinessObjects()&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.UI.Windows.Forms.UserControl.InitializeObject()&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.UI.Windows.Forms.BaseForm.InitializeFormLoadObjects()&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.UI.Windows.Forms.BaseForm.OnLoad(EventArgs e)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Form.OnCreateControl()&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Control.CreateControl()&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Control.WmShowWindow(Message&amp;amp; m)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Control.WndProc(Message&amp;amp; m)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.ScrollableControl.WndProc(Message&amp;amp; m)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.ContainerControl.WndProc(Message&amp;amp; m)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Form.WmShowWindow(Message&amp;amp; m)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Form.WndProc(Message&amp;amp; m)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Control.ControlNative&amp;#119;indow.OnMessage(Message&amp;amp; m)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Control.ControlNative&amp;#119;indow.WndProc(Message&amp;amp; m)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Native&amp;#119;indow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)</description><pubDate>Fri, 22 Aug 2008 09:10:00 GMT</pubDate><dc:creator>Jeff Pagley</dc:creator></item><item><title>RE: BOTranslations using SF UserControl</title><link>http://forum.strataframe.net/FindPost18673.aspx</link><description>Snap, I got distracted and Paul beat me to it.&lt;/P&gt;&lt;P&gt;What he said :D</description><pubDate>Fri, 22 Aug 2008 09:10:00 GMT</pubDate><dc:creator>Dustin Taylor</dc:creator></item><item><title>RE: BOTranslations using SF UserControl</title><link>http://forum.strataframe.net/FindPost18672.aspx</link><description>That's not exactly how the BOTranslations work. The BOTranslations lets the&amp;nbsp;"child" business object within a user control interact with the "parent" business object on the parent form, but both of these business objects are just instances of the same BO. Apples to apples if you will :).&amp;nbsp; &lt;P&gt;You are setting up a Child-Parent relationship between two different BOs, Apples to Oranges. If the only thing your user control deals with are the CampaignSales, then you'll want to place another CampaignSalesBO on your parent form, and set up the parent relationship between it and the CampaignContacts on your main form. That will handle your parent-child relationship, and will give your user control something to talk to on your form.</description><pubDate>Fri, 22 Aug 2008 09:08:54 GMT</pubDate><dc:creator>Dustin Taylor</dc:creator></item><item><title>RE: BOTranslations using SF UserControl</title><link>http://forum.strataframe.net/FindPost18669.aspx</link><description>Hi Jeff,&lt;/P&gt;&lt;P&gt;The BO translations are intended to wire up to BO's of the same type. ie MYBO on my main for translates to MYBO on my usercontrol, it looks like you are attempting to wire up MYBO to MYCHILDBO.&amp;nbsp;So you probably need to either put and instance of the child bo on your main form or the parent bo on your usercontrol&amp;nbsp;and map them accordingly to whatever makes sence in your app.</description><pubDate>Fri, 22 Aug 2008 08:41:46 GMT</pubDate><dc:creator>Paul Chase</dc:creator></item></channel></rss>