Auto LoggedIn & Timestamp

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
avatar69
Posts: 40
Joined: Thu Mar 01, 2007 5:30 pm
Location: Swindon, UK

Auto LoggedIn & Timestamp

Post by avatar69 »

Is there a way I can have some attributes to record when a user creates an instance of a business object, to save the user and the time/date?

So perhaps a attribute of LoggedInUser??? And CurrentTime??

Can anyone tell me how thats done? Many thanks.
JTU
Spirax Sarco
Hubertus
Posts: 153
Joined: Sat Feb 11, 2006 2:11 pm
Location: Austria
Contact:

Post by Hubertus »

To keep track who created the record I use the rule

Code: Select all

If Order IS NEW Then 
Order.Creator=LoggedInRegularUser.LoginName 
Order.Created=CURRENT_TIMESTAMP 
Who modifies a records comes from

Code: Select all

Order.Editor=LoggedInRegularUser.LoginName 
Order.Edited=CURRENT_TIMESTAMP 
Hope it helps,
Hubertus
avatar69
Posts: 40
Joined: Thu Mar 01, 2007 5:30 pm
Location: Swindon, UK

Post by avatar69 »

Wooot!! Very cool. Thank you!
JTU
Spirax Sarco
Post Reply