How do you specify a key array, where one of the keys has multiple items, in a GetAllDocumentsByKey
Posted on 2006-05-04
Good day, goede dag, selamat siang y'all,
OK the preliminaries - I'm on R5.0.12. Now the details - I have the following key array but one of the entries in the key aray I'd like tested for multiple entries. How would I go about doing this so that my collection does not come back with zero documents? Can I only test for one item in each entry? The view in question has the appropriate columns sorted and I cannot change this view. The first column contains the server name categorized, the second column contains the server status, Production, Development, Test or Inactive, also categorized.
Dim collection as NotesDocumentCollection
Dim keyarray (1 to 2) As String
keyarray(1) = "Servername"
keyarray(2) = "Production, Development" <-- I'd like to be able to get documents that have these 2 statuses
Set collection = view.GetAllDocumentsByKey(keyarray, True)
Will I have to basically change out the value for keyarray(2) to get both sets of documents? Or will I have to cycle through replacing keyarray(2) with each status that I want?
Thanks, dank u, terima kasih, y'all