.
HCLSoftware Business Partner
Domino Consulting Services
CRUCIAL Notes Tools
+1
212-599-2048
Domino Consulting Services
CRUCIAL Notes Tools
Domino administration
Notes development
Chat now
.
EN - English
CN - 中文
JP - 日本語
DE - Deutsch
FR - Français
BR - Português
RU - Pу́сский
IT - Italiano
IN - हिन्दी
ES - Español
KR - 한국어
ID - Indonesia
NL - Dutch
TR - Türkçe
SA - العربية
SE - Svenska
NO - Norsk
PL - Polski
TH - ไทย
DK - Dansk
MY - Malay
PH - Filipino
GR - Ελληνικά
FI - Suomi
IL - עברית
IE - Gaeilge
CZ - Čeština
UA - Українська
RO - Română
VN - Tiếng Việt
BD - বাংলা
HU - Magyar
Need a Domino Consultant? Call NotesMail +1 212-599-2048
-
HCLSoftware Business Partner
LOTUSSCRIPT/COM/OLE CLASSES
Examples: NotesDirectory class
1. This LotusScript agent gets the value in the item "email" of the first instance of the name "John" in the view "Contacts" in the directory on the default server.
Sub Initialize
Dim s As New NotesSession
Dim direct As NotesDirectory
Dim nav As NotesDirectoryNavigator
Dim value As Variant
Set direct = s.getDirectory
Set nav = direct.LookupNames("Contacts","John","email")
value = nav.GetFirstItemValue
Msgbox "Value: " + Cstr(value(0))
End Sub
2. This LotusScript agent gets the values in the items "email" and "ShortName" of the first instances of the names "Anne", "Bob", and "Carlos" in the view "Contacts" in the directory on the default server.
Sub Initialize
Dim s As New NotesSession
Dim direct As NotesDirectory
Dim nav As NotesDirectoryNavigator
Dim value As Variant
Dim searchArray (1 To 3) As String
Dim itemArray (1 To 2) As String
Set direct = s.getDirectory
searchArray(1) = "Anne"
searchArray(2) = "Bob"
searchArray(3) = "Carlos"
itemArray(1) = "email"
itemArray(2) = "ShortName"
Set nav = direct.LookupNames("Contacts", searchArray, itemArray)
End Sub
Feedback on
Help
or
Product Usability
?
Help on Help
All Help Contents
Feedback on
Help
or
Usability
?
Help on Help
All Help Contents