Setting field when someone only read?

Few days ago i see someone looking for answer how you will set a doc when a speciell user read it. I have the same problem.I want to set a field whit name DONE to “OK” if username are the same name as in another field called Next.

I want to do it even if the user only read the doc and only one time. All person in the db has right to change/update all docs.

I tried to set it from different Postevent as Postopen etc.

Nothing happens. I will do something like this…

If (userDoc.DONE(0)=“Not” And session.UserName = userDoc.Next(0)) Then

		userDoc.DONE="OK"

	End If

Kind regards

Fredrik

Subject: Setting field when someone only read?

You need to save the document.

Regards,

Simeon

Subject: Setting field when someone only read?

Hi Fredrik,

Session.UserName will return the fully distinguished name - eg “CN=Stew Malone/OU=Editorial/O=Acme”. If you just want the common part, use Session.CommonUserName, which will return “Stew Malone”.

hth

Tony