Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

build list of names for CopyTo from ACLEntries

Status
Not open for further replies.

yert33

Programmer
Feb 19, 2002
255
US
LotusScript: trying to build list of recipients to place in the CopyTo field of a memo. I can loop through the ACLEntries and find each Person/Role I desire, but how do I construct the text list for the CopyTo field?

I tried using the NotesItem method AppendToTextList but can't figure out how to Set the item initially (can't call GetFirstItem on an acl entry and GetFirstEntry will, if it works, put the -Default- aclentry in the list which I do not want).

I now there's got to be a simple solution out there - tell me please!

Thanks in advance,
trey
 
NotesItem can only be Set on a document. Use the following code as example :

Code:
dim session as new notessession
dim db as notesdatabase
dim doc as notesdocument
dim item as notesitem

set db = session.currentdatabase
set doc = db.createdocument
set item = new notesitem(doc,"copyto","")

After, you can use the AppendToTextList method to add the names you want.

Check the Developer's Help for the syntax of NotesItem to see why I wrote it like that.

Hope this helps !

PM
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top