﻿<?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?)  » Hidden Search Fields on Browse Dialog</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:49:29 GMT</lastBuildDate><ttl>20</ttl><item><title>Hidden Search Fields on Browse Dialog</title><link>http://forum.strataframe.net/FindPost2866.aspx</link><description>Hi Everyone,&lt;/P&gt;&lt;P&gt;I am trying to show a Browse Dialog that is "pre-filtered" to only show records that belong to a specific Customer while allowing the user to then search through that subset. I am trying to use a hidden field to accomplish this.&lt;/P&gt;&lt;P&gt;The code below works&amp;nbsp;as long as the foreign key search field is visible.&amp;nbsp;If visible is set to false the foriegn key field's initial value is ignored and all records are returned.&lt;/P&gt;&lt;P&gt;&lt;FONT color=#0000ff size=2&gt;Me&lt;/FONT&gt;&lt;FONT size=2&gt;.JobsitesBrowseDialog.SearchFields.Item(&lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;"js_FK_cu_id"&lt;/FONT&gt;&lt;FONT size=2&gt;).InitialValue = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Me&lt;/FONT&gt;&lt;FONT size=2&gt;.CustomerBO1.cu_pk_id&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;' Me.JobsitesBrowseDialog.SearchFields.Item("js_FK_cu_id").Visible = False&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Me&lt;/FONT&gt;&lt;FONT size=2&gt;.JobsitesBrowseDialog.ShowDialog(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;True&lt;/FONT&gt;&lt;FONT size=2&gt;)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;&amp;nbsp;&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Mon, 18 Sep 2006 11:20:24 GMT</pubDate><dc:creator>Paul Chase</dc:creator></item><item><title>RE: Hidden Search Fields on Browse Dialog</title><link>http://forum.strataframe.net/FindPost2874.aspx</link><description>Thanks for the explanation Trent it makes sense. I should be okay with your earlier suggestion. I'm sure ya got bigger fish in your frying pan right now anyways.&lt;/P&gt;&lt;P&gt;Paul</description><pubDate>Mon, 18 Sep 2006 11:20:24 GMT</pubDate><dc:creator>Paul Chase</dc:creator></item><item><title>RE: Hidden Search Fields on Browse Dialog</title><link>http://forum.strataframe.net/FindPost2873.aspx</link><description>[quote]If the non visible&amp;nbsp;search fields are not&amp;nbsp;used&amp;nbsp;in the search what would be the reason for&amp;nbsp;having the visible property on a search field?[/quote]&lt;/P&gt;&lt;P&gt;We may add a property that allows the developer to determine if the hidden fields should be included on a search.&amp;nbsp; The reason this field exists is so that you can go in and pre-define as many search fields as you would like.&amp;nbsp; You can then write a preference form to allow your end-users to determine which fields they would like to see, and in what order, in their search &amp;#119;indow.&amp;nbsp; You would then set the fields according to the saved preferences before the form is shown.&amp;nbsp; This is what we do for our end-users because everybody has their own idea of what fields that they want to have to search on...this way we can let them pick and choose while maintaining the integrity of the browse.</description><pubDate>Mon, 18 Sep 2006 10:39:48 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Hidden Search Fields on Browse Dialog</title><link>http://forum.strataframe.net/FindPost2872.aspx</link><description>Thanks Trent that will probably get me through this instance as the result list will likely be under 20 records for the most part. &lt;/P&gt;&lt;P&gt;I was hoping to be able to "pre-load" the dialog with the result set for just that customer and then allow the user the abiltiy to specify additional search criteria such as city etc. to drill down a bit more into the pick list.&lt;/P&gt;&lt;P&gt;If the non visible&amp;nbsp;search fields are not&amp;nbsp;used&amp;nbsp;in the search what would be the reason for&amp;nbsp;having the visible property on a search field?&amp;nbsp;It seems to&amp;nbsp;me that&amp;nbsp;even if a developer wished to simply hide the field for whater reason including the&amp;nbsp;hidden field in the&amp;nbsp;query would not affect the result set unless there was a default value set on it? One of those things I guess &lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp; again &lt;/P&gt;&lt;P&gt;P</description><pubDate>Mon, 18 Sep 2006 10:22:57 GMT</pubDate><dc:creator>Paul Chase</dc:creator></item><item><title>RE: Hidden Search Fields on Browse Dialog</title><link>http://forum.strataframe.net/FindPost2871.aspx</link><description>If the field is not visible the field is ignored when executing the search.&amp;nbsp; One thing you can do though, is allow the field to be visible, but do not allow the search panel to be seen.&amp;nbsp; Since you are already providing all of the search criteria, you really only want to show the search results anyway.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can changes the formlayout before you call the ShowDialog.&amp;nbsp; Just move the BrowseResults into the top panel and hide the bottom.&amp;nbsp; This way all you see is the browse results (an possibly&amp;nbsp;an information or side panel...which you can turn off as well).&lt;/P&gt;&lt;P&gt;&lt;FONT color=#0000ff&gt;Me&lt;/FONT&gt;&lt;FONT size=2&gt;.JobsitesBrowseDialog&lt;/FONT&gt;.FormLayout.TopPanelContents = BrowseDialogLayoutType.BrowseResults&lt;/P&gt;&lt;P&gt;&lt;BR&gt;&lt;FONT color=#0000ff&gt;Me&lt;/FONT&gt;&lt;FONT size=2&gt;.JobsitesBrowseDialog&lt;/FONT&gt;.FormLayout.ShowBottomPanel = False</description><pubDate>Mon, 18 Sep 2006 10:01:25 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>