Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Transactions Business Object
Message
From
12/06/2001 10:40:47
 
 
To
12/06/2001 09:48:38
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00518340
Message ID:
00518379
Views:
11
>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
Next
Reply
Map
View

Click here to load this message in the networking platform