Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parent Child Issue
Message
From
02/06/2009 10:05:24
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
 
To
02/06/2009 06:09:29
Antonio Llano
Inmollano S.L.
Getxo, Spain
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 3.0
OS:
Windows 2000 SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01403111
Message ID:
01403165
Views:
41
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform