General information
Category:
The Mere Mortals .NET Framework
Title:
Auto set parent key field in child -- when?
Environment versions
Network:
Windows 2003 Server
Hi Kevin/All,
assuming (yeah I know...) I've set correctly as per the docs in my child object.partial ForeignParentKeyField="myparentid" and AutoSaveOnParentSaved=true, and in my form I've done parent.RegisterChildBizObj(Parent, "Parent").
When adding a new row (mmButtonNew) to a child object, can you tell me when/in what event the child.parentid will get set automatically?
Currently seems to fail after a save attempt (field required) but gets filled after I acknowledge the error dialog, so I can then save.
I can take care of it by setting the field myself in a postnewrow event, but I'd like to handle the mm way if possible.
thanks,
-Larry
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