Parent-Child Business Object Question


Author
Message
Marcia G Akins
Marcia G Akins
StrataFrame User (498 reputation)StrataFrame User (498 reputation)StrataFrame User (498 reputation)StrataFrame User (498 reputation)StrataFrame User (498 reputation)StrataFrame User (498 reputation)StrataFrame User (498 reputation)StrataFrame User (498 reputation)StrataFrame User (498 reputation)
Group: StrataFrame Users
Posts: 322, Visits: 529
Hi All.

Will the framework automagically save multiple rows in the child business object when I do a save or do I have to iterate through and issue a save on each row? Just don't want to write more code than I need to Smile
Ivan George Borges
Ivan George Borges
Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
Hi Marcia.

SF will Save every row in the Business Object that is marked for such, just issue a BO.Save(). Also, if you do it on your Child BO, the parent will automatically be saved beforehands, so integrity will be kept.
Marcia G Akins
Marcia G Akins
StrataFrame User (498 reputation)StrataFrame User (498 reputation)StrataFrame User (498 reputation)StrataFrame User (498 reputation)StrataFrame User (498 reputation)StrataFrame User (498 reputation)StrataFrame User (498 reputation)StrataFrame User (498 reputation)StrataFrame User (498 reputation)
Group: StrataFrame Users
Posts: 322, Visits: 529
Ivan George Borges (11/9/2011)SF will Save every row in the Business Object that is marked for such, just issue a BO.Save(). Also, if you do it on your Child BO, the parent will automatically be saved beforehands, so integrity will be kept.


Hi Ivan.

Thanks for the confirmation. I looked at the docs but did not see that bit of information anywhere.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search