Subject: RE: Is completeReadersList = $Readers + readers + readers_1 + readers_2 and so on?
I found the following in Help Topics.
"Every document includes an $UpdatedBy field that stores, by default, the name of the user or server associated with each document editing session. To conserve disk space use the Advanced database property “Limit entries in $UpdatedBy fields” to specify the number of entries that the $UpdatedBy field can contain.
When the $UpdatedBy field reaches this limit, the oldest entry is removed to make room for the newest entry."
This means the oldest entry. i.e. the creator of document, will be remove from this field.
Is there any other way in which i can get the document creator name?
Subject: RE: Is completeReadersList = $Readers + readers + readers_1 + readers_2 and so on?
Agreed. For existing documents, you may be able to use the first entry in $UpdatedBy and move that over to the new field you create using an agent to “upgrade” documents to the new form design.
Subject: RE: Is completeReadersList = $Readers + readers + readers_1 + readers_2 and so on?
Sorry. Looks like i didnt clearly state my problem. I am not going to change anything on domino. I am just writing crawlers for domino which will fetch all data and metadata. This crawler application should work with all types of database configurations.
In such a case if someone has made the configuration to delete fields in $UpdatedBy after its size reaches, say 10. In such a case, my crawler wont get to know the creator of database.
Subject: RE: Is completeReadersList = $Readers + readers + readers_1 + readers_2 and so on?
In that case, your best bet is still $UpdatedBy for the generic case. As Graham pointed out, unless the designer of the database specifically told Notes/Domino to store the creator name in a particular field, Notes will not otherwise keep track of it.
Bear in mind that the default setting for databases is to keep the entire list of document editors and unless a document has constant changes, it is unlikely that the names will “scroll off” as it were…
You can also use NotesDocument.Authors to get an array of people who edited the document but I believe that is just a “friendly” way of getting at the $UpdatedBy field.
Subject: RE: Is completeReadersList = $Readers + readers + readers_1 + readers_2 and so on?
If your application needs to know the name of the Creator of the document (what we would normaly think of as the author, but Lotus uses that word to identify who can update documents) you should probably code a field into the design that captures that information.
Make it a readers field, and computed when compsed, so no one can change it.
Don’t depend on the built in $Readers field becuase (as you’ve found) it can be modified.
The $Updated field is a possibility, but as it’s limited to the number of names stored there, the creator can be removed if a document is updated by many people.
Subject: Is completeReadersList = $Readers + readers + readers_1 + readers_2 and so on?
Great! Let me clarify one more doubt. Now all these users (i.e. concatenated list of all readers fields) should have permission on database also. i.e. they should have explicit permission or they should be part of some group which has permission on the database. Is that correct?
Subject: RE: Is completeReadersList = $Readers + readers + readers_1 + readers_2 and so on?
Access to the database is completly separate from Reader fields. Updating one will not effect the other.
So if you want “Graham Richards” to be a reader of one of your documents, they need to be in the ACL (probably as a member of an access group) and also added into your reader fields.