Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Auto set parent key field in child -- when?
Message
De
18/08/2008 14:22:27
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Auto set parent key field in child -- when?
Versions des environnements
Environment:
C# 3.0
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01339607
Message ID:
01339607
Vues:
71
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
Fil
Voir

Click here to load this message in the networking platform