Problem solve Get help with specific problems with your technologies, process and projects.

How can I use a profile document to find out the date of a user's last visit?

I would like to personalize the user experience by showing each user new documents that have been added since their last visit. How can I use a profile document to find out the date of the last visit?
While you could use profile documents to accomplish this, there is actually a much easier way to show the users their new documents. All you would need to do is use the view properties that show unread documents in a different color, and apply sorting to keep the new documents at the top of the list. Also note that release 6.5 contains a view -- show unread only command!

If for some reason the above doesn't fully do what you need, you would first create a profile form (e.g., "LVProfile") that contains a field with a time/date datatype named something like LastVisit,. Be sure to use the property to exclude the form from any menus and to keep the form out of all your views. You could then add code (formula or LotusScript, whichever you prefer, this example will use formula language) to the QueryClose event of the view to record the date and time the user closed the view. This code would then look like this:

 "LastVisit"; @Now; @UserName)
You could then test this value like this:
LastTimeHere := @GetProfileField
("LVProfile", "LastVisit"; @UserName)
Hope this helps!

Dig Deeper on Lotus Notes Domino Formula Language

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.




  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...