StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
Business Objects and Data Access (How do I?)
»
When Parent.Save() should it apply Save to Children
When Parent.Save() should it apply Save to Children
Post Reply
Like
1
When Parent.Save() should it apply Save to Children
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Leonard P.
Leonard P.
posted 16 Years Ago
ANSWER
Topic Details
Share Topic
Group: Awaiting Activation
Posts: 65,
Visits: 306
Hi,
My form has parent object and 2 children objects (all the relationships set correctly, etc)
On parent BO Navigated event I fill children by Parent PK (childBo.FillByParentPK(parentBO.PKID); ).
But there was a problem parentBO.Save was executed (in edit mode); it was only saving parent's changes. I thought .Save on parent should propagate to children?
So, I added:
parentBO.Save();
Child1BO.Save();
Child2BO.Save();
It works now, but I just want to make sure I am doing the right thing.
Reply
Like
1
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Threaded View
Threaded View
When Parent.Save() should it apply Save to Children
Leonard P.
-
16 Years Ago
Hey Leonard. See if this one helps:...
Ivan George Borges
-
16 Years Ago
Hi Leonard, If you set the ParentBusinessObject = your ParentBO, it...
Edhy Rijo
-
16 Years Ago
Hi,
I set all children's IncludeInFormSave property to...
Leonard P.
-
16 Years Ago
Yep, that will ceratinly work since calling the save on the form just...
Dustin Taylor
-
16 Years Ago
Post Reply
Like
1
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search