StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
Business Objects and Data Access (How do I?)
»
Exception when saving a parent/child with more than one field in...
Exception when saving a parent/child with more than one field in primary key
Post Reply
Like
0
Exception when saving a parent/child with more than one field in...
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
fparker
fparker
posted 19 Years Ago
ANSWER
Topic Details
Share Topic
Group: Forum Members
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.
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Threaded View
Threaded View
Exception when saving a parent/child with more than one field in...
fparker
-
19 Years Ago
Yes, that was a bug, the Save() method was properly checking the...
StrataFrame Team
-
19 Years Ago
Post Reply
Like
0
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search