Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parent-Child
Message
From
30/06/2008 13:13:35
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Parent-Child
Environment versions
Environment:
VB 9.0
OS:
Windows XP SP2
Network:
Windows XP
Database:
MS SQL Server
Miscellaneous
Thread ID:
01327685
Message ID:
01327685
Views:
45
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
Map
View

Click here to load this message in the networking platform