Property SavedDate As %TimeStamp [ InitialExpression = {$zdt($H,3)} ];

How About Overide %OnAddToSaveSet Method ...

Method %OnAddToSaveSet(depth As %Integer = 3, insert As %Integer = 0, callcount As %Integer = 0) As %Status [ Private, ProcedureBlock = 1 ]
{
set ..SavedDate=$zdt($H,3)
q 1
}


Nuno
Daniel Santa Cruz wrote:

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 = {$zdt($H,3)} ];

Nothing more needed !!!

Nuno




Reply via email to