Group: StrataFrame Developers
Posts: 3K,
Visits: 2.5K
|
Looking at that snapshot, is what is the value of the foreign key before you call Save() on the business object? If you setup the relationship and allow the business objects to maintain it, then the auto-assigned values will be passed to the child's foreign key when the parent is saved (i.e.: if the parent has a new row and you add a new child row before saving the parent, then the foreign key will be a negative number, which is replaced with a positive number when you save the parent (it passes it down to the known children)). If you don't setup the relationship and you have a new, unsaved parent row, then you will need to use the GetPostSavePrimaryKeyValue() on the parent to retrieve the correct FK value before saving the child.
|