Information générale
Catégorie:
The Mere Mortals .NET Framework
Titre:
Auto set parent key field in child -- when?
Versions des environnements
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
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