﻿<?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?)  » Question about subclassed panel and BO binding...</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:45:33 GMT</lastBuildDate><ttl>20</ttl><item><title>Question about subclassed panel and BO binding...</title><link>http://forum.strataframe.net/FindPost3896.aspx</link><description>I have a small question regarding a panel I have successfully managed to subclass (ok well almost successfully).&amp;nbsp; After taking the code from the form designer for the panel, and making sticking it into a class, and altering the code to simply get the form to show up properly, I've run into a problem.&amp;nbsp; The panel&amp;nbsp;has controls bound to a BO that is located on the form, how can I tell the panel class to use these BusinessObjects? &lt;/P&gt;&lt;P&gt;So far, I've changed my Initialization method on the panel class to accept a BusinessLayer object, and changed my New constructor to accept a generic BusinessLayer.&amp;nbsp; After that, I had to go back into the form's designer and add the parameter to where the panel&amp;nbsp;class gets instantiated to pass it the BO from the Form.&lt;/P&gt;&lt;P&gt;After reviewing all of the steps I took, I figured there is&amp;nbsp;a better way of doing this and was hoping you could point me into the right direction.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Robin Giltner</description><pubDate>Fri, 27 Oct 2006 11:00:39 GMT</pubDate><dc:creator>Robin J Giltner</dc:creator></item><item><title>RE: Question about subclassed panel and BO binding...</title><link>http://forum.strataframe.net/FindPost3914.aspx</link><description>No.&amp;nbsp; You would have to drop a user control on a PanelManagerPage.</description><pubDate>Fri, 27 Oct 2006 11:00:39 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Question about subclassed panel and BO binding...</title><link>http://forum.strataframe.net/FindPost3911.aspx</link><description>Another small question, this will work for a PanelManagerPage as well?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Robin</description><pubDate>Fri, 27 Oct 2006 10:56:02 GMT</pubDate><dc:creator>Robin J Giltner</dc:creator></item><item><title>RE: Question about subclassed panel and BO binding...</title><link>http://forum.strataframe.net/FindPost3907.aspx</link><description>hehe....yup, you pretty much nailed it :)</description><pubDate>Fri, 27 Oct 2006 10:39:26 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Question about subclassed panel and BO binding...</title><link>http://forum.strataframe.net/FindPost3906.aspx</link><description>YES!&amp;nbsp; I can add as many BusinessObjects to&amp;nbsp;my UserForm as it takes to run out of memory then blame you guys for the problem!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR&gt;THE DAY IS MINE! :D&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;Robin</description><pubDate>Fri, 27 Oct 2006 10:38:04 GMT</pubDate><dc:creator>Robin J Giltner</dc:creator></item><item><title>RE: Question about subclassed panel and BO binding...</title><link>http://forum.strataframe.net/FindPost3905.aspx</link><description>As many as you would like...go until you run out of memory :D</description><pubDate>Fri, 27 Oct 2006 10:34:24 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Question about subclassed panel and BO binding...</title><link>http://forum.strataframe.net/FindPost3904.aspx</link><description>Awesome, Thanks Trent.&amp;nbsp; I'll give that a try.&amp;nbsp; One quick question, I can translate multiple businessobject from the form to the UserControl right?&lt;BR&gt;&lt;BR&gt;Thanks,&lt;/P&gt;&lt;P&gt;Robin Giltner</description><pubDate>Fri, 27 Oct 2006 10:33:12 GMT</pubDate><dc:creator>Robin J Giltner</dc:creator></item><item><title>RE: Question about subclassed panel and BO binding...</title><link>http://forum.strataframe.net/FindPost3901.aspx</link><description>[quote]The panel&amp;nbsp;has controls bound to a BO that is located on the form, how can I tell the panel class to use these BusinessObjects? [/quote]&lt;/P&gt;&lt;P&gt;This will be more difficult using a Panel...the easiest thing to do is to create an SF User Control class, the place your panel on that user control.&amp;nbsp; All SF user controls have a BOTranslations property that allows business objects to be translated from a form to the dropped on user control.&amp;nbsp; &lt;/P&gt;&lt;P&gt;For example, you would create your user control and drop any BOs that you plan to use on this control.&amp;nbsp; You can bind to these BOs just as though you were on a form.&amp;nbsp; Once you get the user control where you like it, drop it on a form (or another control, etc.).&amp;nbsp; Once the control is dropped on the form, go to the BOTranslations property of the control and use the type editor (builder) that comes up to translate the BOs on your form to the BOs within the user control.&amp;nbsp; So at runtime, the BO instances on the form will automatically translated onto the user control without you having to write a single line of code.</description><pubDate>Fri, 27 Oct 2006 10:30:27 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>