Object Creation Time

For questions and postings not covered by the other forums
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Object Creation Time

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:42 pm

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

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Object Creation Time

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:42 pm

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.


Return to “General Discussion”

Who is online

Users browsing this forum: Bing [Bot] and 4 guests