PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
NotesDocumentSeek (Function)
In french: NotesDocumentCherche
Seeks a document in Lotus Notes.
Remark: To find a document in a view, use NotesViewSeekLast or NotesViewSeekFirst.
Example
// Ouverture d'une session Lotus Notes
IDSession is int
IDSession = EmailStartNotesSession("MotDePasse", "ServeurMars", ...
"mail\julie.nsf", "C:\Users\Julie\AppData\Local\Lotus\Notes\Data\user.id")
...
// Recherche des documents contenant la chaîne "pc soft"
IF NotesDocumentSeek(IDSession, "@contains(@lowercase(categories);'pc soft')") = True THEN
// Enumération des documents trouvés
WHILE NotesOut(IDSession) = False
// Affiche le nom des documents trouvés dans un champ Liste
ListAdd(LISTE_DocumentTrouve, NotesItem(IDSession, "Nom"))
// Document trouvé suivant
NotesDocumentNext(IDSession)
END
ELSE
Info("Aucun document n'a été trouvé")
END
Syntax
<Result> = NotesDocumentSeek(<Session identifier> , <Lotus Notes formula>)
<Result>: Boolean
  • True if one or more documents have been found,
  • False otherwise. If an error occurs, the ErrorOccurred variable is set to True. To get the details of the error, use ErrorInfo with the errMessage constant.
If no document was found, the ErrorOccurred variable remains set to False and NotesOut returns True.
<Session identifier>: Integer
Identifier of session to use. This identifier is returned by EmailStartNotesSession or NotesOpenDatabase.
<Lotus Notes formula>: Character string
Formula for selecting the documents in Lotus Notes. See the documentation about Lotus Notes for more details.
Component: wd270mess.dll
Minimum version required
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment