General information
Category:
The Mere Mortals .NET Framework
Environment versions
Network:
Windows 2003 Server
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only