﻿<?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?)  » BO Translation from User Control Browse Dialog</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 10:26:38 GMT</lastBuildDate><ttl>20</ttl><item><title>BO Translation from User Control Browse Dialog</title><link>http://forum.strataframe.net/FindPost22000.aspx</link><description>Lets see if I can explain this. I have a SF user Control with DevExpress Layoutcontrols. Inside the layout control I have&amp;nbsp;SF Text boxes and a button from which I am calling a browse dialog. The browse dialog is a search of the address table. In the click event of the button I call the browse dialog and search and find four rows. On the main&amp;nbsp;form that&amp;nbsp;I dropped the user control , I have BO translations setup&amp;nbsp;for the address. The browse dialog contains 4 rows and should be translated back to the main form address BO. This is not occurring.&lt;P&gt;Questions ?&lt;/P&gt;&lt;P&gt;1.) Will the BO Translations work in this manner ?&lt;BR&gt;2.) Does embedding the browse dialog in this manner prevent the BO translations ?&lt;BR&gt;3.) What is the full explanation of the translation object property and should it be used in this situation ?&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;P&gt;Kenneth Langley</description><pubDate>Wed, 18 Feb 2009 08:58:52 GMT</pubDate><dc:creator>Kenneth Langley</dc:creator></item><item><title>RE: BO Translation from User Control Browse Dialog</title><link>http://forum.strataframe.net/FindPost22015.aspx</link><description>Great to hear on your health, Ken!&amp;nbsp; &lt;/P&gt;&lt;P&gt;As for the translations, they actually worked as designed, as I mentioned, but the instance of a downstream object has to be manually updated to the translated object after the Load.&amp;nbsp; Since the BO instance dropped on the form is what gets translated, if there is an object (i.e. a BusinessObjectToPopulate) property set to the original object instance, it has to be updated after the Load.&amp;nbsp; That is what I was talking about on the reflection side of things.&amp;nbsp; If we were to reflect over every object on the form looking for any other instance that need to be "swapped" over to the translated instance, it would get REALLY slow.&amp;nbsp; &lt;/P&gt;&lt;P&gt;At any rate, great to hear that you are doing well and got it going!</description><pubDate>Wed, 18 Feb 2009 08:58:52 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: BO Translation from User Control Browse Dialog</title><link>http://forum.strataframe.net/FindPost22014.aspx</link><description>Thanks for the explanation. This is the first instance of where the BO translations did not work. Still loving the product.&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;Kenneth Langley&lt;BR&gt;P.S. Lost 48 pounds and shrinking.</description><pubDate>Wed, 18 Feb 2009 08:51:16 GMT</pubDate><dc:creator>Kenneth Langley</dc:creator></item><item><title>RE: BO Translation from User Control Browse Dialog</title><link>http://forum.strataframe.net/FindPost22010.aspx</link><description>There has been discussion on other threads in this regard.&amp;nbsp; I beleive that I have answered this for Greg in another section.&amp;nbsp; But here it the issue, it has nothing to do with the browse, but the translation.&lt;/P&gt;&lt;P&gt;The BusinessObjectToPopulate is still looking at the original BO instance instead of the translated instance even after the BO translations have taken place.&amp;nbsp; This is as designed at the moment.&amp;nbsp; The problem is that if we were to reflect over every object on the form looking for the original instance to translate, things would get really slow and sluggish.&amp;nbsp; All of the translations take place in the load.&amp;nbsp; So for future reference, if you run into something like this, place your code to update these references with the translated object after the base Load logic.&lt;/P&gt;&lt;P&gt;[codesnippet]MyBase.OnLoad()&lt;/P&gt;&lt;P&gt;'-- Update the references here as the form instances will be translated at this point[/codesnippet]</description><pubDate>Tue, 17 Feb 2009 16:27:55 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: BO Translation from User Control Browse Dialog</title><link>http://forum.strataframe.net/FindPost22009.aspx</link><description>Follow up:&lt;P&gt;The BOTranslation seems to not be the problem after all. I discovered that if I add these two lines of code just before calling the Browse Dialog it works as it should. Question, Why do these settings in the designer not being respected ? Is it the level at which the browse dialog resides ?&lt;/P&gt;&lt;P&gt;[codesnippet]&lt;BR&gt;BrowseDialog.BusinessObjectToPopulate = [Business Object]&lt;BR&gt;BrowseDialog.BusinessObjectType = ["Business Object type"]&lt;BR&gt;[/codesnippet]&lt;P&gt;&amp;nbsp;&lt;P&gt;OK Trent, this one's for you...</description><pubDate>Tue, 17 Feb 2009 16:03:45 GMT</pubDate><dc:creator>Kenneth Langley</dc:creator></item></channel></rss>