﻿<?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 with BO question</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Mon, 14 Sep 2026 08:27:48 GMT</lastBuildDate><ttl>20</ttl><item><title>BrowseDialog with BO question</title><link>http://forum.strataframe.net/FindPost7543.aspx</link><description>I have a BrowseDialog that is based on a BO that is based on a view and when I click 'Ok' in the browse dialog I get this error:&lt;br&gt;
&lt;br&gt;
"The PrimaryKeyFields property must have exactly 1 field to use the PrimaryKeyField property."&lt;br&gt;
&lt;br&gt;
Because the BO is based on a view there really isnt a primary key... not sure what to do from here just looking for some guidance. ;-)</description><pubDate>Fri, 16 Mar 2007 09:22:12 GMT</pubDate><dc:creator>StarkMike</dc:creator></item><item><title>RE: BrowseDialog with BO question</title><link>http://forum.strataframe.net/FindPost7546.aspx</link><description>GREAT! Thanks!</description><pubDate>Fri, 16 Mar 2007 09:22:12 GMT</pubDate><dc:creator>StarkMike</dc:creator></item><item><title>RE: BrowseDialog with BO question</title><link>http://forum.strataframe.net/FindPost7545.aspx</link><description>This is why we added the ability to override the primar key through the BO mapper....for BOs that are based on views.&amp;nbsp; To set a primary key field do the following:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Open the BO Mapper&lt;/LI&gt;&lt;LI&gt;Select the BO which is based on the view&lt;/LI&gt;&lt;LI&gt;Open the BO properties&lt;/LI&gt;&lt;LI&gt;Show the Advanced Options&lt;/LI&gt;&lt;LI&gt;Click the Override Primary Key Specification&lt;/LI&gt;&lt;LI&gt;Choose the field which will "act" as the primary key&lt;/LI&gt;&lt;LI&gt;Click OK&lt;/LI&gt;&lt;LI&gt;Rebuild the partial&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;You now have a BO based on a view with a primary key :)</description><pubDate>Fri, 16 Mar 2007 09:19:30 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>