Page 1 of 1

Object Creation Time

Posted: Fri Aug 07, 2009 12:42 pm
by ConvertFromOldNGs
by Pam >> Tue, 19 Oct 2004 6:18:31 GMT

Is there a way to access the creationTime of an object as a property without adding another property? I need a creation time property as a member key for a dyna dictionary - it seems to be a waste to add the property when it must already be there for the object.creationTime method. Am I missing something?

Thanks
Pam

Re: Object Creation Time

Posted: Fri Aug 07, 2009 12:42 pm
by ConvertFromOldNGs
by Jade Support >> Wed, 20 Oct 2004 1:41:51 GMT

There is no method available to retrieve this information.

Note: The creationTime for a class object (not instances of the class) is altered if the class is versioned due to structural changes as a new class object is created and this has a different creation timestamp to the prior version. However, the reorg process does not alter the creation timestamp of *instances* of the class.

To answer your question:
One way to achieve what you require is to define a dynamic dictionary with external keys using DynaDictionary::addExternalKey.
You can then do something like...

dynaDict.putAtKey(obj.creationTime, obj);

Aaron.