>>just wondering if anyone could confirm the HookPreSave works when saving a child record. I have a HookPreSave(DataTable dt) in my childobject.partial,
>
>Can you explain me how it works for the parent ?
>
>For what I know HookPreSave(mmBusinessObject bizObj, string tableName) is a method of mmBusinessForm and HookPreSave(mmBaseBusinessObject bizObj) is from mmBusinessBaseForm... there are no HookPreSave(DataTable dt) as I know ?
>
>So no HookPreSave does exist in the BO, how can you then have it in the childBO.partial ?
Hi Maurizio,
hmm, might be a version change issue. The 3.5 docs say little about it, from 2.4 docs I see:
Using Business Object Hook Methods
...
HookPreSave
Hook method in which developers can place code to be executed before a data table is saved. If this method returns false, the save is aborted.
protected virtual bool HookPreSave(DataTable dt)
Protected Overridable Function HookPreSave(dt As DataTable) As Boolean
I use it to update lastuser and lastupdate fields when updating the table behind the object.
-Larry