General information
Category:
The Mere Mortals Framework
Thanks James. I'll try with these methods
Oscar
>>I’d like to track time and date for transactions like New and Save when a record is edited. My problem is that the OnSaveNew method triggers when the record has been successfully saved, and I do not know when a record was just edited.
>>
>>On the other hand if I use the PostSaveHook, I’m in the middle of a transaction and I’m not able to use the business object which inserts the transaction into the log table.
>>
>>I would appreciate any kind of information to get around this problem and be able to call a business object to track transactions.
>>
>>Thanks in advance
>>
>>Oscar Corte
>
>There are a number of methods available to test the "state" a record is in. Two in particular are IsNew() and IsChanged(). Instead of putting your logic in the postsavehook() why not put it in the presavehook()? You might also want to take a look at the new publisher and subscriber architecture to do what you need. Check out the documentation in the User's Guide in 6.1
Previous
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