﻿<?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 » WinForms (How do I?)  » Best practice</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 05:02:18 GMT</lastBuildDate><ttl>20</ttl><item><title>Best practice</title><link>http://forum.strataframe.net/FindPost10539.aspx</link><description>Hi,&lt;/P&gt;&lt;P&gt;I am developing an application with an employee maintenance form that will have about 25 childforms or so. I have done&amp;nbsp;some of the child modules now with the childform dialog, so that the parent (employee form) have its primary bo, a lot of bo's for lookup fields (i.e. city in a zip/city table),&amp;nbsp;the child bo's and the childform dialogs with the bo translations.&lt;/P&gt;&lt;P&gt;All is working but i don't know if this is the best way with a form with so many childforms and thereby so many bo's. (i might end up with more than 50 bo's to one form).&lt;/P&gt;&lt;P&gt;I have checked the helpfile and searched the forum, and i don't see this addressed before.&lt;/P&gt;&lt;P&gt;Can any of you provide me with some info on best practice with SF regarding this or maybe tell a little about the way you do it, when you have a form with several childforms?&lt;/P&gt;&lt;P&gt;TIA.&lt;/P&gt;&lt;P&gt;/Teddy</description><pubDate>Thu, 26 Jul 2007 11:34:42 GMT</pubDate><dc:creator>Teddy Jensen</dc:creator></item><item><title>RE: Best practice</title><link>http://forum.strataframe.net/FindPost10578.aspx</link><description>Ben, okay so it is all about controlling when to load&amp;nbsp;the bo's.&amp;nbsp;It is good to know regarding the design of the application.&lt;/P&gt;&lt;P&gt;Greg, thanks for your input. It gave me some good inspiration.&lt;/P&gt;&lt;P&gt;/Teddy</description><pubDate>Thu, 26 Jul 2007 11:34:42 GMT</pubDate><dc:creator>Teddy Jensen</dc:creator></item><item><title>RE: Best practice</title><link>http://forum.strataframe.net/FindPost10561.aspx</link><description>There are two things I've done when managing lots of BOs with there associated controls on a form:&lt;br&gt;
&lt;br&gt;
1. use the panelmanager or a tab and then when a page activates, load the data that page needs. Lots of the time, each page is using a single BO, so it's pretty effecient.  This is generally a single private function with a select case statement on the page's name, called from the page activated event.&lt;br&gt;
&lt;br&gt;
2. externally define pages (I've done panelmanagerpages or wizardpages so far) that have the UI and the BO one them. They are kind of sub forms.  I then expose a method like LoadData that loads the BO. I either use parameters to the method or properties of the page (or both) to gather information needed to load the BO. I then use call the LoadData method when the page is activated.&lt;br&gt;
&lt;br&gt;
I'm sure there are lots of instances when other technique will work better, but I have several forms that have 20+ BOs (don't forget list/combos use them too) and they work well.  My app is also used over a VPN, so I'm always looking to increase speed, so I'll be interested in other's suggestions/ideas.</description><pubDate>Wed, 25 Jul 2007 14:42:44 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Best practice</title><link>http://forum.strataframe.net/FindPost10552.aspx</link><description>Other than the startup time considerations as the form instantiates, you can have as many BOs on the form as you need.&amp;nbsp;</description><pubDate>Wed, 25 Jul 2007 08:49:00 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Best practice</title><link>http://forum.strataframe.net/FindPost10543.aspx</link><description>One thing to consider, if you're users are remote (can't remember if they are or not), but that many BOs has the potential to really slow down the opening of the form.&amp;nbsp; I'd definitly control when they get loaded (i.e. not load them all when the form opens) if there is any chance of network/database latency.</description><pubDate>Tue, 24 Jul 2007 14:19:49 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item></channel></rss>