Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parent Child Issue
Message
De
02/06/2009 10:05:24
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
 
À
02/06/2009 06:09:29
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 3.0
OS:
Windows 2000 SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01403111
Message ID:
01403165
Vues:
42
This message has been marked as the solution to the initial question of the thread.
>I added this code to the child objet:
>
> protected override bool HookPreNewEntity()
> {
> if (this.ParentBizObj != null) return base.HookPreNewEntity();
> if (this.ParentBizObj.GetRowCount() == 0) return false;
> }
>
>But it doesn´t prevent to avoid new records if the parent entity is a new entity and is not saved yet.
>
>I need a kind of RequeryChildOnParentNavigate method.
>
>Thanks.


In your child business object you could override the HookParentNavigated method. Check the jump start for Creating business objects Step 8 "Enhancing the OrderDetail Business Object" item #4.
Tim
Timothy Bryan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform