﻿<?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?)  » browseDialog</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Wed, 09 Sep 2026 09:06:04 GMT</lastBuildDate><ttl>20</ttl><item><title>browseDialog</title><link>http://forum.strataframe.net/FindPost27885.aspx</link><description>I have a view as a BO named cert_viewBO this I set as the BussinessObjectToPopulate and BusinessObjectType, I have selected the search fields and the resultlayout but when I run the browsezDialog no results are returned.&lt;/P&gt;&lt;P&gt;Any ideas?</description><pubDate>Mon, 16 Aug 2010 11:09:25 GMT</pubDate><dc:creator>Ian Johnston</dc:creator></item><item><title>RE: browseDialog</title><link>http://forum.strataframe.net/FindPost27972.aspx</link><description>I understand. But as soon as you want to come back to this, let us know.</description><pubDate>Mon, 16 Aug 2010 11:09:25 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: browseDialog</title><link>http://forum.strataframe.net/FindPost27969.aspx</link><description>I tried my code on the same plaform as you, same result - still not displaying the items in the browse. I am not going to use the browse dialog in the application, Thanks for taking the time to look at it but&amp;nbsp;I am up against a deadline.</description><pubDate>Mon, 16 Aug 2010 10:43:27 GMT</pubDate><dc:creator>Ian Johnston</dc:creator></item><item><title>RE: browseDialog</title><link>http://forum.strataframe.net/FindPost27965.aspx</link><description>Well, that is a good sign then. It should work just as well with your views, and as a matter of fact I used the sample you posted and it worked over here. I am currently on StrataFrame 1.7.0.7 and SQL Server 2008.</description><pubDate>Mon, 16 Aug 2010 06:38:45 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: browseDialog</title><link>http://forum.strataframe.net/FindPost27958.aspx</link><description>Browse dialog in the sample form works. What version of stratafarme &amp;amp; SQL server?</description><pubDate>Sun, 15 Aug 2010 12:57:20 GMT</pubDate><dc:creator>Ian Johnston</dc:creator></item><item><title>RE: browseDialog</title><link>http://forum.strataframe.net/FindPost27928.aspx</link><description>Right now I am on a Win7 64 Professional with VS2008. But I also have machines with Vista and with XP Pro. I don't think this is the issue. Have you had success building a plain BrowseDialog on a normal table?</description><pubDate>Thu, 12 Aug 2010 09:34:28 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: browseDialog</title><link>http://forum.strataframe.net/FindPost27927.aspx</link><description>Just curious but what is your development platform, I am using Vista ultimate service pack 2 and Visual studio 2008 version 9.0.30729.1 SP .Net Framework version 3.5 SP1. I believe the BO is loading it is just not displaying, I tried using the view BO in a listview in my applicaton&amp;nbsp;and get the same result.</description><pubDate>Thu, 12 Aug 2010 08:42:53 GMT</pubDate><dc:creator>Ian Johnston</dc:creator></item><item><title>RE: browseDialog</title><link>http://forum.strataframe.net/FindPost27925.aspx</link><description>Just open your form's code and get rid of the RowPopulating event handler. Let's deal with this part later.</description><pubDate>Wed, 11 Aug 2010 13:00:59 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: browseDialog</title><link>http://forum.strataframe.net/FindPost27922.aspx</link><description>Was working and now I just tried to runand got the error in the attachment.</description><pubDate>Wed, 11 Aug 2010 12:03:38 GMT</pubDate><dc:creator>Ian Johnston</dc:creator></item><item><title>RE: browseDialog</title><link>http://forum.strataframe.net/FindPost27921.aspx</link><description>I asked that just because it happens to me all the time! :D&lt;/P&gt;&lt;P&gt;Strange result you are getting there... over here, I have created the same view you did over there and haven't done anything to your sample besides creating an enter to the BrowseDialog&amp;nbsp;SearchFields property with the cust_FirstName.&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/6a3cbed8-71f5-43f5-92e0-82a8.jpg"&gt;</description><pubDate>Wed, 11 Aug 2010 11:34:42 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: browseDialog</title><link>http://forum.strataframe.net/FindPost27919.aspx</link><description>:P Yes, don't blame you for asking! Very strange, I am wondering if it is a permission issue on the server. I am getting the exact same result in the app I am working on using a view, no visible result even though it says it found records.</description><pubDate>Wed, 11 Aug 2010 11:26:19 GMT</pubDate><dc:creator>Ian Johnston</dc:creator></item><item><title>RE: browseDialog</title><link>http://forum.strataframe.net/FindPost27917.aspx</link><description>Sorry for the question, Ian... but once you entered the BrowseDialog, did you click the Search button?</description><pubDate>Wed, 11 Aug 2010 11:19:38 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: browseDialog</title><link>http://forum.strataframe.net/FindPost27916.aspx</link><description>Yep.&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/45437ee3-31a0-4806-8cf3-6eaa.jpg"&gt;</description><pubDate>Wed, 11 Aug 2010 11:18:22 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: browseDialog</title><link>http://forum.strataframe.net/FindPost27915.aspx</link><description>I had to comment out the code from CustomerBrowseDetails to get it to work, that was the original code in the sample. When you run the browse you are seeing the actual names and not just blank rows?</description><pubDate>Wed, 11 Aug 2010 10:26:54 GMT</pubDate><dc:creator>Ian Johnston</dc:creator></item><item><title>RE: browseDialog</title><link>http://forum.strataframe.net/FindPost27914.aspx</link><description>Great, we are getting there. Your issue now seems to be with your CustomerBrowseDetails InformationPanel.&lt;/P&gt;&lt;P&gt;You are dealing with its RowChanged event, you are on the right path there, but remember you are not dealing with the Customers BO at this moment, but with the view instead. You can use the current view row PK to go to the Customers table and get the info you are looking for, though. For the sake of making your BrowseDialog work first and get the idea of it, try to comment those lines and focus on getting the BD work and populate your form's primary BO with the rows from your BD results. I did it over here and the BD list populated just fine from the view.</description><pubDate>Wed, 11 Aug 2010 10:11:29 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: browseDialog</title><link>http://forum.strataframe.net/FindPost27913.aspx</link><description>Thanks for looking at it. It is working in that the browse window opens and when I do a search it says 1000 records found but no results are displayed but the rows are there in the grid.</description><pubDate>Wed, 11 Aug 2010 09:41:32 GMT</pubDate><dc:creator>Ian Johnston</dc:creator></item><item><title>RE: browseDialog</title><link>http://forum.strataframe.net/FindPost27910.aspx</link><description>OK, some considerations:&lt;/P&gt;&lt;P&gt;You mapped your view to Customer_poBO, which is fine, and the cust_pk is been returned, perfect. &lt;/P&gt;&lt;P&gt;Your Customer_poBO has a fill method selecting records from the Customers table, I guess it should be from your Customer_po view. Although you won't need to fill this BO to have it working with the BrowseDialog. The BrowseDialog will fill it with the results it gets depending on your search criteria.&lt;/P&gt;&lt;P&gt;Your form has the CustomersBO1 as the PrimaryBusinessObject and your controls are bound to this BO properties. This is just fine.&lt;/P&gt;&lt;P&gt;But then, your BrowseDialog has the Customer_poBO1 as the BusinessObjectToPopulate. This is not a problem, but once your BrowseDialog brings your search results, this is the BO that will be populated, and not your form's BO, CustomersBO1.&lt;/P&gt;&lt;P&gt;Still on your BrowseDialog, you haven't set the SearchFields, and this will definetely throw an error at run time. You need to set them:&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/993ea823-13b6-47d3-830a-23df.jpg"&gt;&lt;/P&gt;&lt;P&gt;Once you get this working, you will have your Customer_poBO1 populated as soon as you Close the BrowseDialog after having your search results listed and pressing OK. At this stage, you need to use the BrowseDialogClosed event as I have tried to show you earlier on this following post:&lt;/P&gt;&lt;P&gt;&lt;A href="http://forum.strataframe.net/FindPost20493.aspx"&gt;http://forum.strataframe.net/FindPost20493.aspx&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Why that? Because your results will have the Customer's PKs that you want to show on your form, so you need to get all the PKs from your populated view and fill your form's primary BO with the records that match this list of PKs from your view.&lt;/P&gt;&lt;P&gt;There might be some concepts you could be missing on how the BrowseDialog works. If you haven't done so, the Tutorial on the Help files could help you get a general idea of it. It is under&amp;nbsp;"Application Framework / Getting Started / Tutorials / Creating a WinForms App"&lt;/P&gt;&lt;P&gt;Hope it helps. ;)</description><pubDate>Wed, 11 Aug 2010 08:47:42 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: browseDialog</title><link>http://forum.strataframe.net/FindPost27909.aspx</link><description>Please see ttached</description><pubDate>Tue, 10 Aug 2010 15:25:27 GMT</pubDate><dc:creator>Ian Johnston</dc:creator></item><item><title>RE: browseDialog</title><link>http://forum.strataframe.net/FindPost27907.aspx</link><description>How do you attach to a post?</description><pubDate>Tue, 10 Aug 2010 15:19:17 GMT</pubDate><dc:creator>Ian Johnston</dc:creator></item><item><title>RE: browseDialog</title><link>http://forum.strataframe.net/FindPost27906.aspx</link><description>What to post and where</description><pubDate>Tue, 10 Aug 2010 15:10:07 GMT</pubDate><dc:creator>Ian Johnston</dc:creator></item><item><title>RE: browseDialog</title><link>http://forum.strataframe.net/FindPost27904.aspx</link><description>And sorry, I meant zip your sample solution and attach it to a post so I can download it.</description><pubDate>Tue, 10 Aug 2010 15:04:08 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: browseDialog</title><link>http://forum.strataframe.net/FindPost27903.aspx</link><description>Please, post your sample and I will have a look.</description><pubDate>Tue, 10 Aug 2010 15:02:58 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: browseDialog</title><link>http://forum.strataframe.net/FindPost27902.aspx</link><description>In the samples database I deployed the following view:&lt;/P&gt;&lt;P&gt;SELECT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dbo.Customers.cust_pk, dbo.Customers.cust_FirstName, dbo.Customers.cust_LastName, dbo.Customers.cust_City, dbo.Orders.or_ponumber&lt;BR&gt;FROM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dbo.Customers INNER JOIN&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dbo.Orders ON dbo.Customers.cust_pk = dbo.Orders.or_cust_pk&lt;/P&gt;&lt;P&gt;named it Customer_po&lt;/P&gt;&lt;P&gt;in the Browse dialog example I aded a BO customer_poBO&lt;/P&gt;&lt;P&gt;Set up the BO to be populated from the server&lt;/P&gt;&lt;P&gt;Overrode primary key specification&lt;/P&gt;&lt;P&gt;put Cust_pk&lt;/P&gt;&lt;P&gt;rebuild all&lt;/P&gt;&lt;P&gt;rebuilt application&lt;/P&gt;&lt;P&gt;added BO to the form&lt;/P&gt;&lt;P&gt;changed the browsedialog to look at it and set the search field appropriately&lt;/P&gt;&lt;P&gt;Put the following code in the toolstip cliked&lt;/P&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;if&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; (&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;this&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.printToolStripButton.Pressed)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/FONT&gt;&lt;P&gt;set a break point&lt;/P&gt;&lt;P&gt;ran the application&lt;/P&gt;&lt;P&gt;In the object viewer for each field in the BO it says This.(whichever field) threw an exception of type'MicroFour.StratFrame.Business.businessLayerException'&lt;/P&gt;&lt;P&gt;Can you duplicate this?</description><pubDate>Tue, 10 Aug 2010 14:43:22 GMT</pubDate><dc:creator>Ian Johnston</dc:creator></item><item><title>RE: browseDialog</title><link>http://forum.strataframe.net/FindPost27901.aspx</link><description>You don't. If your ViewBO &lt;STRONG&gt;instance&lt;/STRONG&gt; is set as the BrowseDialog's BusinessObjectToPopulate, it will be automaticaly populated by the BrowseDialog control as soon as it fetches the records based on your search criteria.</description><pubDate>Tue, 10 Aug 2010 13:48:29 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: browseDialog</title><link>http://forum.strataframe.net/FindPost27899.aspx</link><description>OK so how do I populate the view BO?</description><pubDate>Tue, 10 Aug 2010 12:46:39 GMT</pubDate><dc:creator>Ian Johnston</dc:creator></item></channel></rss>