﻿<?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 in a Child form</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 02:50:08 GMT</lastBuildDate><ttl>20</ttl><item><title>Browse Dialog in a Child form</title><link>http://forum.strataframe.net/FindPost2877.aspx</link><description>Hya.&lt;/P&gt;&lt;P&gt;I put a BrowseDialog in a child form.&lt;/P&gt;&lt;P&gt;It shows up fine, the search fields are there, the records get listed, but once I choose one and go back to the form, it doesn't position the BO to the chosen record.&lt;/P&gt;&lt;P&gt;Am I missing something? (besides the beautiful windy and sunny day out there)</description><pubDate>Mon, 18 Sep 2006 14:00:59 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Browse Dialog in a Child form</title><link>http://forum.strataframe.net/FindPost2891.aspx</link><description>Never mind Trent, don't want to take your time with this. &lt;/P&gt;&lt;P&gt;Id doesn't change anything. I press the button to refresh but it seems it is stoped in the row it is showing.&lt;/P&gt;&lt;P&gt;I can continue with the forms and surely will find out what I did here.</description><pubDate>Mon, 18 Sep 2006 14:00:59 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Browse Dialog in a Child form</title><link>http://forum.strataframe.net/FindPost2890.aspx</link><description>Just to prove and see if the refresh fixes the issue, just put a button on your form and add the code to do the refresh when you come back from the browse.&amp;nbsp; If the refresh works then I will try to think of a place to add the code so it is automatically called.</description><pubDate>Mon, 18 Sep 2006 13:54:53 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Browse Dialog in a Child form</title><link>http://forum.strataframe.net/FindPost2889.aspx</link><description>I meant where (which method, event) in the parent should I put this line of code.&lt;/P&gt;&lt;P&gt;Well, I put it in the Activate method, no lucky.</description><pubDate>Mon, 18 Sep 2006 13:52:32 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Browse Dialog in a Child form</title><link>http://forum.strataframe.net/FindPost2888.aspx</link><description>It is on the business object.&amp;nbsp; For example:&lt;/P&gt;&lt;P&gt;MyBO.Refresh()</description><pubDate>Mon, 18 Sep 2006 13:37:37 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Browse Dialog in a Child form</title><link>http://forum.strataframe.net/FindPost2887.aspx</link><description>[quote][b]Trent L. Taylor (09/18/2006)[/b][hr][quote]When you return from the browse, does the BO contain the correct data?&amp;nbsp;[/quote] &lt;/P&gt;&lt;P&gt;Yes, it does, but not positioned in the correct row.&lt;/P&gt;&lt;P&gt;[quote][It so, try calling the BO.Refresh()...this will force your bound controls to refresh to the current record in the BO.[/quote]&lt;/P&gt;&lt;P&gt;Extremely sorry for the stupid question, but where could I call the Refresh?</description><pubDate>Mon, 18 Sep 2006 13:36:42 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Browse Dialog in a Child form</title><link>http://forum.strataframe.net/FindPost2886.aspx</link><description>[quote]Too confusing? Would you like me to try and explain in Portuguese? You can ask Steve to help in the translation...[/quote]&lt;/P&gt;&lt;P&gt;LOL...yeah, I'll get him in here to translate for me.&amp;nbsp; When you return from the browse, does the BO contain the correct data?&amp;nbsp; It so, try calling the BO.Refresh()...this will force your bound controls to refresh to the current record in the BO.</description><pubDate>Mon, 18 Sep 2006 13:27:20 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Browse Dialog in a Child form</title><link>http://forum.strataframe.net/FindPost2885.aspx</link><description>[quote][b]Trent L. Taylor (09/18/2006)[/b][hr]Is the business object that is attached to the browse a translated business object?&amp;nbsp; This could possibly be a dangerous situation if you are changing the contents of the business object that is managed on the parent form.&amp;nbsp; However, if the child form has a browse that is not going to kill your parent/child logic you will be fine.&amp;nbsp; &lt;P&gt;If you look at the contents of the BO after the browse, does the record actually exist in the BO...first lets make sure that the data made it back.[/quote]&lt;P&gt;Yes, it is a translated business object.:blush:&lt;P&gt;It is a one-to-many situation. Have the parent, a button there calling the child form. This parent may have lots of kids, so I put a Browse dialog in the child ToolStrip. Then I set the BOToPopulate to the BO in the Child, and its Type. When I go to the Browse and do a Search, the grid gets populated alright. I click the chosen one and go back to the child form, that's when it doesn't show the record I chose, but it stays in the one it was already.&lt;P&gt;Too confusing? Would you like me to try and explain in Portuguese? You can ask Steve to help in the translation...:D</description><pubDate>Mon, 18 Sep 2006 13:24:01 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Browse Dialog in a Child form</title><link>http://forum.strataframe.net/FindPost2883.aspx</link><description>[quote]&lt;TABLE cellSpacing=0 cellPadding=0 width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class=BigTxt vAlign=top&gt;&lt;SPAN id=_ctl1__ctl0_ctlTopic__ctl0_ctlPanelBar_ctlTopicsRepeater__ctl4_lblFullMessage&gt;(hope you notice when I say "all the other forms", I'm trying to show off)&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;[/quote]&lt;/P&gt;&lt;P&gt;That's funny!.....I noticed :D&amp;nbsp;</description><pubDate>Mon, 18 Sep 2006 13:14:11 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Browse Dialog in a Child form</title><link>http://forum.strataframe.net/FindPost2882.aspx</link><description>Is the business object that is attached to the browse a translated business object?&amp;nbsp; This could possibly be a dangerous situation if you are changing the contents of the business object that is managed on the parent form.&amp;nbsp; However, if the child form has a browse that is not going to kill your parent/child logic you will be fine.&amp;nbsp; &lt;/P&gt;&lt;P&gt;If you look at the contents of the BO after the browse, does the record actually exist in the BO...first lets make sure that the data made it back.</description><pubDate>Mon, 18 Sep 2006 13:12:27 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Browse Dialog in a Child form</title><link>http://forum.strataframe.net/FindPost2881.aspx</link><description>(hope you notice when I say "all the other forms", I'm trying to show off)</description><pubDate>Mon, 18 Sep 2006 13:08:39 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Browse Dialog in a Child form</title><link>http://forum.strataframe.net/FindPost2879.aspx</link><description>[quote][b]Trent L. Taylor (09/18/2006)[/b][hr]You need to set the BusinessObjectToPopulate property on the business object.&amp;nbsp; [/quote]&lt;/P&gt;&lt;P&gt;It is already Trent.&lt;/P&gt;&lt;P&gt;It is working fine in all the other forms. It's just in this ChildForm that it is not. In the parent of this form, it works fine.</description><pubDate>Mon, 18 Sep 2006 13:07:05 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Browse Dialog in a Child form</title><link>http://forum.strataframe.net/FindPost2878.aspx</link><description>You need to set the BusinessObjectToPopulate property on the business object.&amp;nbsp; This is the BO that gets updated with the results located from the browse when you click the OK within the BrowseDialog.&lt;/P&gt;&lt;P&gt;yup...I would agree that it would be more fun outside today :)</description><pubDate>Mon, 18 Sep 2006 13:01:39 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>