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:
@SetProfileField("LVProfile"; "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
Related Q&A from Maureen Leland
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.