Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
HookSetDefaultValues() not firing on Child
Message
De
26/08/2008 13:34:50
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
HookSetDefaultValues() not firing on Child
Divers
Thread ID:
01341894
Message ID:
01341894
Vues:
48
Hi all,

I have 2 business objects with default values specified in the HookSetDefaultValues() of each. Both set the default values fine on a NewEntity(), until I register one as a child. After registering, the parent HookSetDefaultValues() fires but the child does not. The child does get a new entity, but the defaults are not populated. I stepped through the code and the HookSetDefaultValues() definitley is not executing on the child.

The child has the following in the HookConstructor()
this.AutoCancelOnParentCancel = true;
this.AutoDeleteOnParentDeleted = true;
this.AutoNewOnParentAdded = true;
this.AutoSaveOnParentSaved = true;
this.ForeignParentKeyField = "TaxRequest_ID";        
I tried adding
this.AutoEmptyOnParentAdded = false;
Didn't help.

Anyone else seeing this?

Thanks
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform