Setting authors/readers fields through script
Here is a code example of how to populate an array of Authors and/or Readers type field.
Dim arrayAuthors( 2 ) As String
arrayAuthors( 0 ) = "[role1]"
arrayAuthors( 1 ) = "[role2]"
arrayAuthors( 2 ) = "[role3]"
Dim arrayReaders( 2 ) As String
arrayReaders( 0 ) = "user1"
arrayReaders( 1 ) = "user2"
arrayReaders( 2 ) = "user3"
Set item1 = New notesitem( newDoc, "docAuthors", arrayAuthors , AUTHORS)
Set item2 = New notesitem( newDoc, "docReaders", arrayReaders , READERS)
item1.issummary = True
item2.issummary = True
This was first published in May 2001
Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.