﻿<?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 leaves a filter on my BO</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Fri, 29 May 2026 14:24:08 GMT</lastBuildDate><ttl>20</ttl><item><title>Browse dialog leaves a filter on my BO</title><link>http://forum.strataframe.net/FindPost9865.aspx</link><description>I have a data maintenance form and I'm using the Browse dialog to offer a search. &lt;P&gt;I have a problem with the state that the Browse functionality leaves the maintenance form in after a browse is performed and the user selects one of the results. After closing the browse dialog I cannot navigate the full recordset that was previously populated in the business object bound to the Browse. Instead, only the search results that matched the user's search in the Browse dialog are available.&lt;/P&gt;&lt;P&gt;Is this by design? - if so, how do I clear the "filter" - should I Fill the data?</description><pubDate>Sun, 08 Jul 2007 03:08:47 GMT</pubDate><dc:creator>thegwill</dc:creator></item><item><title>RE: Browse dialog leaves a filter on my BO</title><link>http://forum.strataframe.net/FindPost10094.aspx</link><description>Thanks for the suggestions. I'll give&amp;nbsp;them a try</description><pubDate>Sun, 08 Jul 2007 03:08:47 GMT</pubDate><dc:creator>thegwill</dc:creator></item><item><title>RE: Browse dialog leaves a filter on my BO</title><link>http://forum.strataframe.net/FindPost9880.aspx</link><description>[quote]Is this by design? - if so, how do I clear the "filter" - should I Fill the data? [/quote]&lt;P&gt;Yes.&amp;nbsp; The BrowseDialog will always search the data stores records and not the records within your BO.&amp;nbsp; The business object that you associate with the browse dialog on the form (BusinessObjectToPopulate) will have all of the interal records replaced with the results from the browse.&amp;nbsp; If you want to combine a BO on your form with the results that come back from the sever, then just drop another BO on your form which will be used for browse purposes only and leave the other BO which is bound to your controls alone.&amp;nbsp; Then once the browse has been performed, you can merge the two BOs by calling the CopyDataFrom method on the bound BO.&lt;/P&gt;&lt;P&gt;[codesnippet]MyBoundBO.CopyDataFrom(MyBrowseBO, ClearAndFillFromTable)[/codesnippet]&lt;/P&gt;&lt;P&gt;If you want to search within a BO, then you can just perform a Select() on the DataTable itself:&lt;/P&gt;&lt;P&gt;[codesnippet]MyBoundBO.CurrentDataTable.Select("WHERE STATEMENT")[/codesnippet]&lt;P&gt;Also, if you have an actual "Filter" applied, then just reset the property:&lt;P&gt;[codesnippet]MyBO.FIlter = ""[/codesnippet]&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; The BrowseDialog does NOT apply a filter, it pulls actual records back from the server.</description><pubDate>Mon, 02 Jul 2007 08:57:25 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Browse dialog leaves a filter on my BO</title><link>http://forum.strataframe.net/FindPost9869.aspx</link><description>Hi Thegwill. &lt;P&gt;I think the Browse Dialog will search your table, and not your current recordset. What if the user chooses a record that wasn't in you recordset in the first place? Unless, of course,&amp;nbsp;you are loading all records into your BO on form load. &lt;P&gt;If the user wants to have the whole recordset back, he/she could go back to Browse and do a search with no criteria. That would fill the BO with all records from the table.</description><pubDate>Sun, 01 Jul 2007 11:44:58 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item></channel></rss>