StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Exception when saving a parent/child with...Expand / Collapse
Author
Message
Posted 10/27/2006 10:39:46 AM
StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: Forum Members
Last Login: 08/30/2007 12:05:52 PM
Posts: 31, Visits: 199
I have a screen with two business objects on it in a parent/child relationship.  The parent object has two fields in its primary key and the child has three.  The PrimaryKeyIsAutoIncremented property is set to false for both objects.  Whenever I try to save, the BusinessLayer.PushDataToChildren method throws a BusisnessLayerException.  The description is "The PrimaryKeyIsAutoIncremented property on business object [] cannot be True because the PrimaryKeyField property contains more than one field.".  I took a look at this method and it looks to me like the problem is that the check that determines whether or not this exception should be thrown looks only at the number of fields in the primary key and ignores the state of the PrimaryKeyIsAutoIncremented property. 

Fran Parker.

MaxQ Technologies, Inc.

Post #3908
Posted 10/27/2006 10:51:20 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 12/09/2008 3:36:08 PM
Posts: 2,686, Visits: 1,891
Yes, that was a bug, the Save() method was properly checking the PrimaryKeyIsAutoIncremented property before calling the PushDataToChildren() method, however, the SaveByForm was not checking the same value before calling it.

The resolution will be in the build we are releasing later today.  Thanks.


www.bungie.net
Post #3910
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 5:17pm

Powered by InstantForum.NET v4.1.4 © 2009
Execution: 0.047. 10 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.