Search DominoPower's 11,425 Lotus-related article archive 
Home
EasyPrint
News details Click here for the RSS feed's XML code. This is not a browser URL.
Articles-only Click here for the RSS feed's XML code. This is not a browser URL.
Twitter Feed Click here for the Twitter feed.
Doing more in Lotuscript with Notes.Net class libraries (continued)

While I needed this to create a report that enabled us to be able to see whether a database was being used at all, I can see other uses this might be put to. It could be part of a detailed billing effort, or it could be used where you need to double-check who is, and in the past has, actually accessed what, as part of a security and access control audit.

NotesUnreadMarks
How many times have you wanted to be able to play about with the unread mark tables in a database? This class, yet again written by Daniel Alvers, enables you to do just that. But you should be cautious with it. Daniel wrote this for R4, and while it seems to work with R5, remember, as he points out in the Notes.Net reviews, that the way that the R5 client manages unread marks means that using this concurrently with client sessions just won't give you what you need. Indeed, the class was not intended, and should not be used from the UI (User Interface). Also, be aware that unread marks don't replicate with the database between client and server or between server replicas, rather they're stored locally in desktop.dsk and synchronized with replicas when they're opened.

As described in the Notes C API reference documentation:

In Notes, unread marks for each user are stored in the client desktop.dsk file and in the database. When a user closes a database (either through the Notes user interface or through an API program), the unread marks in the desktop.dsk file and in the database are synchronized so that they match. Unread marks are not replicated when a database is replicated. Instead, when a user opens a replica of a database, the unread marks from the desktop.dsk file propagates to the replica database. NSFDbGetUnreadNoteTable only accesses the unread marks stored in the database and does not attempt to synchronize with the unread marks in desktop.dsk.

But even so, there are instances where I can see this being useful in background activities. If you're performing some administrative actions on a database that will involve updating documents, it'll mean that all users will see all the documents you change marked as unread. You could use this class to make a list of who has read what and then update the unread lists afterwards. You'd need the NotesUserActivity class to be able to list all the user names that have accessed the database and therefore for whom unread mark table entries exist.

I can also see it being useful in agents that inform people of document updates in databases. Normally you'd do this with an agent that runs on new and modified documents, but when you alter such an agent, it then works on all documents in the database. In fact, what happens is that the agent runs on all documents that are now modified since the agent's last run. Change the agent and the last run information is deleted, so it processes all documents in the database. If what you're doing is sending newsletters to people telling them of new documents, the end result will be less than useful. With this class, you could genuinely tell users individually about documents that they have not read, or which have changed since they last read them.


« Previous  ·  1  ·  2  ·  3  ·  4  ·  5  ·  6  ·  Next »
Other articles you might like
Home > Lotus Technologies > LotusScript (64 articles)
   When the debugger won't debug hidden code that isn't hidden
   What to do if the LotusScript debugger won't single-step over code
   Little known traps about Lotus Notes fields
Get Weekly Email Updates
Subscribe to our regular weekly email newsletter. It's packed with tips, reviews, deep analysis, and the latest news.
 
Recent DominoPower Articles
Application development, William Shatner, and the origin of the universe
Learn Domino Designer 8.5 for free
The (near) future of Sametime, Quickr, Connections, and Symphony
Inside the IBM Innovations lab
Lotusphere 2010: Hot fixes and cool news for Notes, Domino, and LotusLive
Lotusphere 2010: mobility and collaboration
2010: A Lotusphere of change
Latest Lotus Headlines
Quickr place Superusers
Writing Client-Side Javascript for Re-Use
Lotus Notes R8.5.1: Bug in Contacts "Print Selected View"
New Notes/Domino Technotes published about Chile's extended daylight saving time
SnnT: How to prevent Google from listing your Sametime Server
How to send someone an email that shows your calendar availability
"The collection has become invalid"
>> Read all the news
More from the ZATZ journals
Computing Unplugged: The iPad defenders have spoken
David Gewirtz Online: CNN commentary and analysis
OutlookPower: More about disappearing text
-- Advertisement --

Sophisticated Meets Simple For Document Management
Share. Control. Manage.
Documents, emails, and content in the context of how work is done. Native to Lotus Domino. The User Experience unseen for Lotus Domino. Do more with less. Really.

See the possibilities Docova unleashes for Lotus Domino.
-- Advertisement --

Teamstudio Edition 25 has shipped
It's finally here! Now that Teamstudio Edition 25 has shipped, listen to our latest Tool Time audio program to find out what's changed. Updates to all your favorite Teamstudio tools will be discussed.

Plus, you'll get an introduction to Teamstudio Undo (formerly known as Teamstudio Snapper).

Tap here to get started!

ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
Copyright © 1998-2010, ZATZ Publishing. All rights reserved worldwide.
Editor's Login