LOTUSSCRIPT/COM/OLE CLASSES
Finds a view entry of type document based on its column values within a view. You create an array of keys, where each key corresponds to a value in a sorted column in the view. The method returns the first entry whose column values match each key in the array.
Note This method is new with Release 5.
Defined in
NotesView
Syntax
Set notesViewEntry = notesView.GetEntryByKey( keyArray [, exactMatch% ] )
Parameters
keyArray
notesViewEntry
For the GetAllDocumentsByKey method to work, you must have at least one sorted column for each key.
If this method is used under COM, with a keyArray parameter of an array, it must be defined as an array of type Variant.
This method returns only the first entry within the view whose column values match the keys you indicate. To locate all the matching entries, use the GetAllEntriesByKey method.
Matches are not case-sensitive. For example, "Turban" matches "turban." In an exact match, "cat" matches "cat" but does not match "category," while "20" matches "20" but does not match "201." In a partial match, "T" matches "Tim" or "turkey," but does not match "attic," while "cat" matches "catalog" or "category," but does not match "coat" or "bobcat."
This method is similar to GetDocumentByKey. See Locating documents within a view for information about working with documents.
Language cross-reference
getEntryByKey method in Java View class
Example See Also