Subject: RE: Author Only View on the Web
These are existing documents? You will need to add your admin role to the authors field on those documents, then make sure that the field actually is an Authors-type field. You will probably need to use (or have someone else use) Full Access Administration to fix the documents. That will let you see them all. In a view that contains all of the documents, run this agent (set to “Manual from actions list” and “All documents in view”):
Dim s As New NotesSession
Dim db As NotesDatabase
Dim dc As NotesDocumentCollection
Dim doc As NotesDocument
Dim authorItem As NotesItem
Set db = s.CurrentDatabase
Set dc = db.UnprocessedDocuments
Set doc = dc.GetFirstDocument
Do Until doc Is Nothing
Set authorItem = doc.GetFirstItem(“AdminFieldName”)
authorItem.Values = “[AdminRole]”
authorItem.IsAuthors = True
Call doc.Save(True, False)
Set doc = dc.GetNextDocument
Loop
That code can all go into Sub Initialize.
As for RestrictToCategory, that goes onto the end of the URL. If you want to see how it works, click on “Show all my posts” under Member Tools. That will show a view called ShowMyTopicsAllFlatWeb, with the URL looking like this:
http://www-10.lotus.com/ldd/nd6forum.nsf/showmytopicsallflatweb?openview&RestrictToCategory=Heidi+Owens
To see my posts, you’d look at:
http://www-10.lotus.com/ldd/nd6forum.nsf/showmytopicsallflatweb?openview&RestrictToCategory=Stan+Rogers