﻿<?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?)  » Browse Dialog</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Mon, 14 Sep 2026 09:42:11 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Browse Dialog</title><link>http://forum.strataframe.net/FindPost11926.aspx</link><description>I will try to make a unique BD for all the project (my boss request :w00t: ) and if I can't I try to convince him to use you aproach of 1 BD for each BO :) thanks!</description><pubDate>Tue, 09 Oct 2007 10:44:09 GMT</pubDate><dc:creator>Fabian R Silva, -</dc:creator></item><item><title>Browse Dialog</title><link>http://forum.strataframe.net/FindPost9241.aspx</link><description>Hi!&lt;P&gt;I would like to have only one BrowseDialog for all my BO's on my form so my question is how do I set the the BD's properties in code?&lt;/P&gt;&lt;P&gt;i.e. in the click event for the browse button of the form I would like to do something like:&lt;/P&gt;&lt;P&gt;[codesnippet]&lt;/P&gt;&lt;P&gt;if (this.ActiveBO is&amp;nbsp;CustomerBO)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; this.browseDialog.SomeProperty = "CustomerSomeValue"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; this.browseDialog.SomeOtherProperty = "CustomerSomeOtherValue"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; etc.&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;else if (this.ActiveBO is&amp;nbsp;OrderBO)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; this.browseDialog.SomeProperty = "OrderSomeValue"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; this.browseDialog.SomeOtherProperty = "OrderSomeOtherValue"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; etc.&lt;/P&gt;&lt;P&gt;}&lt;P&gt;[/codesnippet]&lt;P&gt;Is this the right way or is their an easier/cleaner way to do this&lt;P&gt;Sarosh</description><pubDate>Tue, 09 Oct 2007 10:44:09 GMT</pubDate><dc:creator>Sarosh</dc:creator></item><item><title>RE: Browse Dialog</title><link>http://forum.strataframe.net/FindPost11925.aspx</link><description>The BrowseDialog is, like all other SF classes, a class with collections.&amp;nbsp; So in essence you could create a BD dynamically in code.&amp;nbsp; This would require some effort on your part.&lt;/P&gt;&lt;P&gt;One thing that you misunderstood is that we have one BD that is used for many different BO types.&amp;nbsp; This is not the case.&amp;nbsp; We create a unique BD for each BO type that we plan to have a browse for in our application.&amp;nbsp; We create a user control for each BD, and drop the BD on the SF user control.&amp;nbsp; This allows us to set it up as we would like easily without manually coding it.&amp;nbsp; When can then drop it on any SF form and the use the BOTranslations property of the User Control to use a BO.&lt;/P&gt;&lt;P&gt;Even in our medical application, we use a unique BD for each unique BO type.</description><pubDate>Tue, 09 Oct 2007 10:30:47 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Browse Dialog</title><link>http://forum.strataframe.net/FindPost11923.aspx</link><description>[quote][b]Trent L. Taylor (06/01/2007)[/b]&lt;br&gt;
All of our BrowseDialogs reside on a user control which encapsulates the BO that is used and then uses the BOTranslations of the user control to expose the settings to the form on which the control which houses the BD is dropped.[/quote]&lt;br&gt;
&lt;br&gt;
Can I create a class that receive parameters for columns, search fields, etc and dinamically create the browsedialog at runtime? or I have to create 1 BD for each BO? I not understand if in your medical software you create 1 user control for each BO or 1 user control that you drop on a form and it work for any BO&lt;br&gt;
&lt;br&gt;
Basically, I like to dinamically allow a user to select wich fields and columns like in the browse, then assign it to the BD class and show it; How do you think that is best to accomplish it? thanks in advance :)</description><pubDate>Tue, 09 Oct 2007 09:56:33 GMT</pubDate><dc:creator>Fabian R Silva, -</dc:creator></item><item><title>RE: Browse Dialog</title><link>http://forum.strataframe.net/FindPost9252.aspx</link><description>Hi!&lt;P&gt;Maybe I was not clear. I had two different questions&lt;/P&gt;&lt;P&gt;1] How can I save a BrowseDialog control after setting&amp;nbsp;all its required properties lets say&amp;nbsp;for a CustomerBO in the form designer into a class by itself so that I can reuse it in all forms that have that CustomerBO.&lt;/P&gt;&lt;P&gt;Now a question on a seperate topic.&lt;/P&gt;&lt;P&gt;2] How can I create a Business Object (using the Business Object Mapper) e.g. CustomerBO that inherits from my own base Class and not the default &lt;FONT color=#000000 size=2&gt;MicroFour.StrataFrame.Business.&lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;BusinessLayer class.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#2b91af size=2&gt;e.g.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#2b91af&gt;I would like the Code generated by the &lt;/FONT&gt;&lt;FONT color=#1f5080&gt;Business Object Mapper to be changed from:&lt;/FONT&gt;&lt;/P&gt;&lt;FONT color=#2b91af size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;P&gt;[codesnippet]&lt;/P&gt;&lt;P&gt;public&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;partial&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;class&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt; Customer&lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;BO&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt; : MicroFour.StrataFrame.Business.&lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;BusinessLayer&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;to this:&lt;/P&gt;&lt;FONT color=#2b91af size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;&lt;FONT color=#0000ff size=2&gt;public partial&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;class&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt; &lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;&lt;FONT color=#000000&gt;Customer&lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;BO &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt;: MyCompany.&lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;BaseBO&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;[/codesnippet]&lt;/P&gt;&lt;P&gt;&lt;FONT color=#2b91af size=2&gt;where &lt;FONT color=#000000&gt;MyCompany.&lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;BaseBO inherits from &lt;FONT color=#000000&gt;MicroFour.StrataFrame.Business.&lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;BusinessLayer&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#2b91af size=2&gt;basically have my own BO class&amp;nbsp;between &lt;FONT color=#000000&gt;MicroFour.StrataFrame.Business.&lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;BusinessLayer and CustomerBO but generated by the&amp;nbsp;Business Object Mapper.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#2b91af size=2&gt;&lt;FONT color=#2b91af size=2&gt;Thanks&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Sarosh&lt;FONT color=#2b91af size=2&gt;&amp;nbsp;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description><pubDate>Fri, 01 Jun 2007 13:17:54 GMT</pubDate><dc:creator>Sarosh</dc:creator></item><item><title>RE: Browse Dialog</title><link>http://forum.strataframe.net/FindPost9248.aspx</link><description>Well at this point it is all about inheritance and reusability.&amp;nbsp; You cannot make a BD totally generic, the core of a BD is the type of BO that is assigned to the control.&amp;nbsp; If you try type the BO as a BusinessLayer and then expect the SearchFields, etc. to work, it won't.&amp;nbsp; All subsequent properties touch the type of the BO that is assigned to the BrowseDialog.&amp;nbsp; You can see a sample of classes a BD in the CRM Sample Application.&amp;nbsp; We take a somewhat different approach in our medical system since we have a code field that goes along with the browse.&amp;nbsp; All of our BrowseDialogs reside on a user control which encapsulates the BO that is used and then uses the BOTranslations of the user control to expose the settings to the form on which the control which houses the BD is dropped.</description><pubDate>Fri, 01 Jun 2007 10:51:17 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Browse Dialog</title><link>http://forum.strataframe.net/FindPost9243.aspx</link><description>Hi!&lt;/P&gt;&lt;P&gt;Ok I get your point.&lt;/P&gt;&lt;P&gt;How&amp;nbsp;can I&amp;nbsp;set all the BD properties of a BD in the forms designer&amp;nbsp;and then save that BD as a class so that I can reuse it in different forms?&lt;/P&gt;&lt;P&gt;Is it possible to specify in the BusinessObjectMapper what class to inherit from instead of the default "&lt;FONT size=2&gt;&lt;/P&gt;&lt;P&gt;MicroFour.StrataFrame.Business.&lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;BusinessLayer"? The reason I ask this is that I would like to have a company/application level BO class between "&lt;FONT size=2&gt;&lt;/P&gt;&lt;P&gt;MicroFour.StrataFrame.Business.&lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;BusinessLayer" and lets say the CustomerBO&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#2b91af size=2&gt;Sarosh&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description><pubDate>Fri, 01 Jun 2007 09:03:49 GMT</pubDate><dc:creator>Sarosh</dc:creator></item><item><title>RE: Browse Dialog</title><link>http://forum.strataframe.net/FindPost9242.aspx</link><description>If you create a BrowseDialog and look at the code that is created within the designer, you will see that there are a lot of properties and collections that get set.&amp;nbsp; Making one BD handle all of your BOs really is not a feasible prospect and even I would not attempt to do that as it would be a lot of code overhead.&amp;nbsp; You are better off creating a BD for each of your BOs and then dynamically swapping which BD is used.&amp;nbsp; ALso, if you class these then you can reuse them on other forms as well and the will be encapsulated, which is extremely important, otherwise you are going to end up rewriting code over and over again.</description><pubDate>Fri, 01 Jun 2007 08:41:47 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>