Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum


  

PreviousPrevious NextNext

RE: Agent to add readers field
~Holly Desveluzen 10.Mar.07 03:19 PM a Web browser
Applications Development 7.0.1 All Platforms


If you are running this code in an agent that acts on selected documents in a view, you need a little more code.

Dim session As New NotesSession
Dim db As NotesDatabase
Dim coll As NotesDocumentCollection
Dim doc As NotesDocument
Dim readersItem As NotesItem
Dim newValues( 1 To 2 ) As String

newValues( 1 ) = "User 1"
newValues( 2 ) = "User 2"

Set db = session.CurrentDatabase
Set coll = db.UnprocessedDocument
Set doc = coll.GetFirstDocument
While Not (doc Is Nothing)
Set readersItem = New NotesItem(doc, "docReaders", newValues, READERS)
Call doc.Save( True, True )
Set doc = coll.GetNextDocument(doc)
Wend




Agent to add readers field (~Laura Nonvelub... 10.Mar.07)
. . . . . . RE: Agent to add readers field (~Chloe Desponet... 10.Mar.07)
. . . . . . . . RE: Agent to add readers field (~Laura Nonvelub... 10.Mar.07)
. . . . . . . . . . RE: Agent to add readers field (~Holly Desveluz... 10.Mar.07)
. . RE: Agent to add readers field (~Holly Zenboosi... 10.Mar.07)
. . . . RE: Agent to add readers field (~Laura Nonvelub... 10.Mar.07)


Document Options






  Document options
Print this pagePrint this page

Search this forum

Forum views and search


  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Category
Platform
Release
Advanced search

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS