General information
Category:
The Mere Mortals .NET Framework
I have a parent child relationship setup as follows:
Me.oCaseHeader = CType(Me.RegisterBizObj(New CaseHeader), CaseHeader)
Me.oContact = CType(Me.RegisterBizObj(New Contact), Contact)
Me.oCaselog = CType(Me.RegisterBizObj(New CaseLog), CaseLog)
Me.oJurisdiction = CType(Me.RegisterBizObj(New Jurisdiction), Jurisdiction)
'Register the CaseContact as the main business object of this form
Me.RegisterPrimaryBizObj(Me.oCaseHeader)
'Set the child and parent relationship between the CaseHeader table and the Caselog table
Me.oCaseHeader.RegisterChildBizObj(Me.oCaselog, "Caselog")
'Set the child and parent relationship between the CaseHeader table and the Contact table
Me.oCaseHeader.RegisterChildBizObj(Me.oContact, "Contact")
When I click on the "New" button on an mmMaintenanceForm a new record is added to the parent and not the children.
Here's my ".Partial.VB" HookConstructor():
Me.AutoSaveOnParentSaved = True
Me.AutoCancelOnParentCancel = True
Me.AutoDeleteOnParentDeleted = True
Me.AutoNewOnParentAdded = True
Me.ForeignParentKeyField = "clg_GUIDPK"
Am I missing a setting to relay the "New" message to the children?
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only