﻿<?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 Question</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Sun, 19 Apr 2026 04:06:17 GMT</lastBuildDate><ttl>20</ttl><item><title>BrowseDialog Question</title><link>http://forum.strataframe.net/FindPost4275.aspx</link><description>How would I set a static search criterion for a Browse dialog? I.e. I need to always limit the records returned by "project" (yes the infamous project), which is determined at run time.  E.g. I have a process form (storing info about processes) that needs to always limit the search to the current project plus whatever criterion the user provides (if any).  &lt;br&gt;
&lt;br&gt;
Can I enter runtime determined values in the initial value, like a .net variable? &lt;br&gt;
&lt;br&gt;
Is the criterion used to filter the BO or fill the table? If it used to filter, then I suppose the FillBy method that I'm using would do the trick.&lt;br&gt;
&lt;br&gt;
Thanks!</description><pubDate>Thu, 09 Nov 2006 16:29:45 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: BrowseDialog Question</title><link>http://forum.strataframe.net/FindPost4317.aspx</link><description>Okey dokey...I guess I'll have to roll my own.</description><pubDate>Thu, 09 Nov 2006 16:29:45 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: BrowseDialog Question</title><link>http://forum.strataframe.net/FindPost4313.aspx</link><description>Well, you can subclass a BrowseDialog so that you can reuse it over and over again...but the code that you would need to get to is buried within the class...and is really not something that you would want to change.&amp;nbsp;</description><pubDate>Thu, 09 Nov 2006 16:16:58 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: BrowseDialog Question</title><link>http://forum.strataframe.net/FindPost4309.aspx</link><description>Any way to subclass this puppy and add some functionality, while still leveraging the query string builder, etc.?</description><pubDate>Thu, 09 Nov 2006 15:23:46 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: BrowseDialog Question</title><link>http://forum.strataframe.net/FindPost4308.aspx</link><description>Well....just so you know, this has been on the enhancement requests for a while.&amp;nbsp; This is not the first request for this type of behavior.</description><pubDate>Thu, 09 Nov 2006 14:24:12 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: BrowseDialog Question</title><link>http://forum.strataframe.net/FindPost4306.aspx</link><description>Bummer.&lt;br&gt;
&lt;br&gt;
I need to have one criterion that is set by program, then allow others to be set by user. So, I need to be able to hide just one search field. Oh well, I was hoping that the BrowseDialog would be an easy way to add some searching, but that is not the case in most of the situations I'll be using it.</description><pubDate>Thu, 09 Nov 2006 14:21:18 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: BrowseDialog Question</title><link>http://forum.strataframe.net/FindPost4291.aspx</link><description>At the moment the search field does have to be visible...but you can hide the entire search fields panel.&amp;nbsp; If you look at the FormLayout property, you can hide the side and bottom panels.&amp;nbsp; If you put the SearchFields in the bottom panel, and the Results in the top panel...you can totally control the search and have it return whatever data you want...and the end-user cannot control the search criteria.</description><pubDate>Thu, 09 Nov 2006 13:46:02 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: BrowseDialog Question</title><link>http://forum.strataframe.net/FindPost4289.aspx</link><description>OK, so to set an immutable search criterion would be configured to search on a field, set to be not visible, and then set the initialvalue in code when the form loads, right?</description><pubDate>Thu, 09 Nov 2006 13:39:35 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: BrowseDialog Question</title><link>http://forum.strataframe.net/FindPost4281.aspx</link><description>[quote]I need to always limit the records returned by "project" (yes the infamous project), which is determined at run time. [/quote]&lt;/P&gt;&lt;P&gt;Set the BrowseDialogs MaximumReturnedRecords property...by default it is 1000.&amp;nbsp; &lt;/P&gt;&lt;P&gt;[quote]Can I enter runtime determined values in the initial value, like a .net variable? &lt;BR&gt;[/quote]&lt;/P&gt;&lt;P&gt;me.MyBrowseDialog.SearchFields.Item("MyField").InitialValue = "Whatever"&lt;/P&gt;&lt;P&gt;[quote]Is the criterion used to filter the BO or fill the table?[/quote]&lt;/P&gt;&lt;P&gt;Fill...a filter would not be feasible if there were a lot of records.&amp;nbsp; We dynamically create queries to pull data back from the server.&amp;nbsp; &lt;/P&gt;&lt;P&gt;Just FYI...there is a ton of documentation on this control.&amp;nbsp; It was just updated before this last release also.</description><pubDate>Thu, 09 Nov 2006 13:26:17 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>