TOPIC: Automatic TimeStamp fields
#1361
Automatic TimeStamp fields 1 Year, 3 Months ago
I have question about automatic <fieldname>_TS use. After record is saved it sends AfterSaving message, I catch message with hook to update listview, but see all fields updated except automatic timestamp field. Later on I see it is updated. Why is the new timestamp not visible after the first update? Maybe automatic timestamp field is updated after AfterSaving message is sent already?
 
 
#1362
Re:Automatic TimeStamp fields 1 Year, 3 Months ago
The _TS field gets updated internally when the record is written to the database. The record in memory is not updated.

_TS was added as a kind of "version number" to detect multi-user conflicts.

Because it changes on every update, it is not useful as a "record id".

Hope that helps.
 
 
andrew