Never use the %OnBeforeSave to change a value before saving. At this point in a Persistent objects save logic the SaveSet (what is taken from memory and prepped for on-disk storage) has already been created. This could cause problems as your objects get more complex.
Nuno is correct in refencing the %OnAddToSaveSet() callback method to update a value on the save.
Gregory
Warlin Garcia wrote:
You can use %OnBeforeSave method.
See: http://localhost:1972/csp/docbook/DocBook.UI.Page.cls?KEY=GOBJ_callbacks#GOBJ_cb_onbeforesave
Warlin Garcïa
"Daniel Santa Cruz" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
{$zdt($H,3)} ];Thanks Nuno!
Now, this would store the time the object that first instantiated. How about the time when it was saved?
Nuno Canas wrote:
Daniel,
Try
Property CreationDate As %TimeStamp [ InitialExpression =
Nothing more needed !!!
Nuno
