﻿<?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 » Business Objects and Data Access (How do I?)  » When I access a BOs PK Field I just get Guid.empty</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Wed, 08 Apr 2026 18:50:39 GMT</lastBuildDate><ttl>20</ttl><item><title>When I access a BOs PK Field I just get Guid.empty</title><link>http://forum.strataframe.net/FindPost10655.aspx</link><description>G'day&lt;P&gt;I've have a BO that I'm programatically instantiating, and filling with a stored procedure. The stored procedure only returns a single row of the SQL Server 2005 table to which it relates. What I want to do is use the Primary Key of this BO as a parameter to a stored procedure that will fill another BO (that I will also instantiate programatically) with selected records (filtered on foreign key). These BOs contain Application configuration Data and there will be&amp;nbsp;no user interaction it, which is why I'm not dropping it on a form.&lt;/P&gt;&lt;P&gt;The Primary Key I'm trying to access is a guid. When I set a break in Visual Studio and look at the contents of the BO I see that the&amp;nbsp;CurrentDataTable has a single row, and there are values in all the columns,&amp;nbsp;similarly for the CurrentView, but when I look at the DTGID property (the primary key) I see the value of Guid.empty. I looked at the other columns/properties&amp;nbsp;and saw that they all had the values as shown in the CurrentDataTable except for three others that contain guids which show guid.empty.&lt;/P&gt;&lt;P&gt;I think I have come across this before when I had a BO dropped on a form, but gave up and moved on with something else.&lt;/P&gt;&lt;P&gt;Does anyone have an explanation or suggestion on how to get around this?&lt;/P&gt;&lt;P&gt;Peter</description><pubDate>Thu, 02 Aug 2007 09:41:15 GMT</pubDate><dc:creator>Peter Denton</dc:creator></item><item><title>RE: When I access a BOs PK Field I just get Guid.empty</title><link>http://forum.strataframe.net/FindPost10680.aspx</link><description>LOL...we have all been there :)&amp;nbsp; Glad you found your problem.</description><pubDate>Thu, 02 Aug 2007 09:41:15 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: When I access a BOs PK Field I just get Guid.empty</title><link>http://forum.strataframe.net/FindPost10656.aspx</link><description>G'day again&lt;/P&gt;&lt;P&gt;Problem solved. My fault entirely, when I saw in the Visual studio Watch window the value of Guid.empty next to the property I was interested in I mistakenly believed that it was in fact empty.&lt;/P&gt;&lt;P&gt;My Boss pointed out that if I were to use a ".ToString" I'd get the string representation of what I wanted. I guess it shows once again why he's the boss.&lt;/P&gt;&lt;P&gt;Peter</description><pubDate>Wed, 01 Aug 2007 04:13:48 GMT</pubDate><dc:creator>Peter Denton</dc:creator></item></channel></rss>