Information générale
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
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?
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement