Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
HookPreSave not hooked with child/related save?
Message
From
12/08/2008 00:56:54
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
HookPreSave not hooked with child/related save?
Miscellaneous
Thread ID:
01338239
Message ID:
01338239
Views:
67
Hi,
just wondering if anyone could confirm the HookPreSave works when saving a child record. I have a HookPreSave(DataTable dt) in my childobject.partial, which works fine for other objects just not either of my child objects (I have two different forms saving master and child, both childs don't call this routine). I have done the RegisterChildBizObj and EntityCentric is false.

For s&g in the sample app I added
protected override bool HookPreSave(DataTable dt)
{
   Console.WriteLine("in parent hps");
   return base.HookPreSave(dt);
}
to Order.Partial.cs

and
protected override bool HookPreSave(DataTable dt)
{
   Console.WriteLine("in child hps");
   return base.HookPreSave(dt);
}
to OrderDetail.Partial.cs

then added an order detail and modified the order, as expected I saw 'in parent hps' but not 'in child hps'.

thanks,
-Larry
Next
Reply
Map
View

Click here to load this message in the networking platform