Second BO not included in Form Save


Author
Message
Andrew Harper
Andrew Harper
StrataFrame User (411 reputation)StrataFrame User (411 reputation)StrataFrame User (411 reputation)StrataFrame User (411 reputation)StrataFrame User (411 reputation)StrataFrame User (411 reputation)StrataFrame User (411 reputation)StrataFrame User (411 reputation)StrataFrame User (411 reputation)
Group: StrataFrame Users
Posts: 91, Visits: 3.4K
Hi,

I have a maintenance form that maintains a primary bo named boPromo. When in Edit mode the user can click a button to load details into a second bo boPromoDetails.  

The form "IncludeInFormEditType","IncludeInFormSaveType" and "IncludeInFormUndoType" properties are set to "DeterminedByBusinessObject" .
The form "IncludeInFormAddType","IncludeInFormDeleteType" and "IncludeInFormNavigateType" properties are set to "PrimaryBusinessObject" 

boPromo has all the "IncludeInForm..." properties set to True.
boPromoDetails has "IncludeInFormSave" and "IncludeInFormUndo" set to True.



boPromoDetails is not being included in the form Save. If I set a breakpoint in the form BeforeSave then boPromodetails.isDirty = true.

A breakpoint in the  boPromoDetails.BeforeSave handler is not fired.

If I code  a boPromoDetails.Save() in the form.BeforeSave then  boPromoDetails.BeforeSave handler is  fired and the details are saved correctly.



What am I missing here?

TIA,

Andy
Replies
Andrew Harper
Andrew Harper
StrataFrame User (411 reputation)StrataFrame User (411 reputation)StrataFrame User (411 reputation)StrataFrame User (411 reputation)StrataFrame User (411 reputation)StrataFrame User (411 reputation)StrataFrame User (411 reputation)StrataFrame User (411 reputation)StrataFrame User (411 reputation)
Group: StrataFrame Users
Posts: 91, Visits: 3.4K
Thanks Trent,

I will try establish the relationship and test. More generally, does this mean that a relationship has to be established to save more than 1 BO at a time?

Best regards Andy
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
No, but if they are related you will want to tie them together.  This is important to maintain the integrity of a parent-child relationship.  If this isn't a parent-child relationship, then there is something else in the mix.  To clear things up, if you can create a quick sample of your problem that could help also.
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