Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parent-Child
Message
De
30/06/2008 13:13:35
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Parent-Child
Versions des environnements
Environment:
VB 9.0
OS:
Windows XP SP2
Network:
Windows XP
Database:
MS SQL Server
Divers
Thread ID:
01327685
Message ID:
01327685
Vues:
46
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
Fil
Voir

Click here to load this message in the networking platform