﻿<?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 » Issues  » BrowseDialog</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 13:05:06 GMT</lastBuildDate><ttl>20</ttl><item><title>BrowseDialog</title><link>http://forum.strataframe.net/FindPost5167.aspx</link><description>&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080"&gt;I’m using a combobox in a browse dialog that is populated by a Enum and setting the initial search value to the Enum I want to search on.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;When I run the program the initial value for the combo box along with other search criteria that I’ve defined is displayed. What I’d like to to do is prevent the user from changing the initial value I specified for the combo box and limit their selection to the other search criteria. I tried un-checking the Visible property on the Search Field Criteria window figuring this is what it is intended for. However when Visible is un-checked the Initial Search Value is not set and I end up with a conversion for type ‘DBNull’ to type ‘Integer’ exception since I have no matching Enum for the value zero. To me it would make the browse dialog more useful if it set the search field to the initial search value specified when the field is not visible to the user.&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080"&gt;-Larry&lt;/SPAN&gt;</description><pubDate>Wed, 03 Jan 2007 13:35:14 GMT</pubDate><dc:creator>Larry Caylor</dc:creator></item><item><title>RE: BrowseDialog</title><link>http://forum.strataframe.net/FindPost5550.aspx</link><description>Thanks!  :w00t:</description><pubDate>Wed, 03 Jan 2007 13:35:14 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: BrowseDialog</title><link>http://forum.strataframe.net/FindPost5549.aspx</link><description>Okay...Okay...I give... I will see what I can do :D</description><pubDate>Wed, 03 Jan 2007 13:15:22 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: BrowseDialog</title><link>http://forum.strataframe.net/FindPost5547.aspx</link><description>Me too :D&lt;br&gt;
&lt;br&gt;
Actually, I'd like to suggest rather than a hidden field (or in addition to), how about a property that can just be set to some arbitrary filter. This could either be set in the property sheet or via code and would be a base filter that the user would not have any control over. I would suggest that it even be parameterless (I.e. the filter is built as it is needed by the DB), since only the developer would set the value.  Take this value, wrap it in parentheses and 'AND' it to the user provided filter (if the user provided a filter, of course).&lt;br&gt;
&lt;br&gt;
E.g.&lt;br&gt;
  Property called something like StaticFilter.&lt;br&gt;
&lt;br&gt;
  In code you'd set it to something like:&lt;br&gt;
&lt;br&gt;
  BrowserForm1.StaticFilter = "Country='us'"&lt;br&gt;
&lt;br&gt;
    or &lt;br&gt;
&lt;br&gt;
  BrowserForm1.StaticFilter = "CountryCode=1"&lt;br&gt;
&lt;br&gt;
The resulting where clause would look like (of course, parameters would likely actually be used for the user entered parameters):&lt;br&gt;
&lt;br&gt;
  Where (Country='us') And (lastname='jones%')&lt;br&gt;
&lt;br&gt;
where the user entered 'jones' for the lastname filter. &lt;br&gt;
&lt;br&gt;
I'm currently implementing my own version of the BrowseForm, because I MUST have this feature.  I have row level security, and while I can enforce that easily via appropriate FillBy methods of a BO, I need to also enforce that when the user searches (they effectively can only search the rows they have access too).  If there is something terribly wrong with this idea, please let me know, as I'll be using it soon :crazy:&lt;br&gt;
&lt;br&gt;
Thanks and I hope you all had a good break!</description><pubDate>Wed, 03 Jan 2007 12:17:47 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: BrowseDialog</title><link>http://forum.strataframe.net/FindPost5483.aspx</link><description>Me 2:P</description><pubDate>Fri, 29 Dec 2006 07:43:38 GMT</pubDate><dc:creator>Paul Chase</dc:creator></item><item><title>RE: BrowseDialog</title><link>http://forum.strataframe.net/FindPost5353.aspx</link><description>&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080"&gt;Thanks for the explanation. You can add me to the list:satisfied:&lt;/SPAN&gt;</description><pubDate>Sat, 16 Dec 2006 15:24:50 GMT</pubDate><dc:creator>Larry Caylor</dc:creator></item><item><title>RE: BrowseDialog</title><link>http://forum.strataframe.net/FindPost5334.aspx</link><description>It has been reqested several times that the search will include "non-visible" fields with search values.&amp;nbsp; At present this functionality does not exist.&amp;nbsp; It is on our enhancement lists, but as to when this feature (if ever) may make it into the framework I do not know.</description><pubDate>Fri, 15 Dec 2006 11:07:21 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: BrowseDialog</title><link>http://forum.strataframe.net/FindPost5331.aspx</link><description>Did you guys miss this one???</description><pubDate>Fri, 15 Dec 2006 10:44:56 GMT</pubDate><dc:creator>Larry Caylor</dc:creator></item></channel></rss>