﻿<?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?)  » Custom Properties BrowseDialog Search</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 07:38:29 GMT</lastBuildDate><ttl>20</ttl><item><title>Custom Properties BrowseDialog Search</title><link>http://forum.strataframe.net/FindPost20576.aspx</link><description>Hi, I´m facing with the problem that I have set a custom property field for the inventory table named ItemCode (String) that is populated with the ItemCode field in the Items Table to get item info clean. &lt;br&gt;
&lt;br&gt;
I added this field as a searchable field in the BrowseDialog but because the BO needs to be filled before the custom property is actually returned I´m getting a KeyNotFoundException because the custom field does not belong to the Collection Dictionary.&lt;br&gt;
&lt;br&gt;
Is there a workaround to get this working or I´ll just have to remove this search field.&lt;br&gt;
&lt;br&gt;
Thanks for your help guys in advance :)</description><pubDate>Thu, 06 Nov 2008 05:44:48 GMT</pubDate><dc:creator>Guillermo Vilas</dc:creator></item><item><title>RE: Custom Properties BrowseDialog Search</title><link>http://forum.strataframe.net/FindPost20582.aspx</link><description>Thanks Ivan I´ll look at that post.</description><pubDate>Thu, 06 Nov 2008 05:44:48 GMT</pubDate><dc:creator>Guillermo Vilas</dc:creator></item><item><title>RE: Custom Properties BrowseDialog Search</title><link>http://forum.strataframe.net/FindPost20580.aspx</link><description>Hi Guillermo.&lt;/P&gt;&lt;P&gt;You cannot use a&amp;nbsp;custom property as a search field&amp;nbsp;because the search fields&amp;nbsp;are directly translated back to the query that is executed on SQL Server.&amp;nbsp; So, if the column does not exist on SQL Server, the BorwseDialog&amp;nbsp;cannot use the field&amp;nbsp;as a search field.&lt;/P&gt;&lt;P&gt;One way to accomplish this would be to create a view with all the fields you will need as search fileds and use the BrowseDialog on the view. If you decide for this, here is a post to get you started: &lt;A href="http://forum.strataframe.net/FindPost20493.aspx"&gt;http://forum.strataframe.net/FindPost20493.aspx&lt;/A&gt;</description><pubDate>Thu, 06 Nov 2008 05:19:15 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item></channel></rss>