Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
HookPreSaveEntity code not executing
Message
From
16/01/2009 16:24:29
 
 
To
16/01/2009 15:11:05
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 3.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01374504
Message ID:
01374549
Views:
12
>Good afternoon Listers,
>I have code placed in the HookPreSaveEntity method which is saved in my warehousePartial.cs file.
>In a debug session this code is never hit. The data is saved to the backend with the changes that I made in my grid.
>Why would this code not be executing?
>
>thanks for any advice.
>rick

Rick,

I think you will have to put your code in the HookPreSave(DataTable dt) method in your business object. For some reason known only to Kevin the saving of data when called via a standard mmButtonSave button does not call any of the EntityCentric related methods but goes straight to the datatable. I pointed this out to Kevin a long time ago and he assured me that it had to be this way. Several other buttons do similarly. In each case, these buttons actually use the mmButtonHelper class which uses the mmBusinessForm class which uses the datatable eventually.

I have successfully used the HookPreSave(DataTable dt) method to make additional data changes to rows that have been changed by the user.

Sam Tenney
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform