PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Modifies the specified item of the current document in Lotus Notes. If the specified Lotus Notes item does not exist, this item is added to the items of the current document.
To take this modification into account, the document must be saved by NotesSave.
Example
// Start a Lotus Notes session
SessionID is int
SessionID = EmailStartNotesSession("Password", ...
"MarsServer", "email\julia.nsf", ...
"C:\Users\Julia\AppData\Local\Lotus\Notes\Data\user.id")
...
// Read the first document
NotesDocumentFirst(SessionID)
// Modify the subject of the document
NotesModifyItem(SessionID, "Subject", "My new subject")
// Save the modifications
NotesSave(SessionID)
Syntax

Modifying a simple Lotus Notes item Hide the details

<Result> = NotesModifyItem(<Session Identifier> , <Lotus Notes Item> , <New Value>)
<Result>: Boolean
  • True if the Lotus Notes item was modified,
  • False otherwise.
The ErrorOccurred variable is set to True if an error occurred. To find out the error details, use ErrorInfo associated with the errMessage constant.
<Session Identifier>: Integer
Identifier of the session to use. This identifier is returned by EmailStartNotesSession or NotesOpenDatabase.
<Lotus Notes Item>: Character string
Name of the Lotus Notes item whose value must be modified. The Lotus Notes item is added if it does not exist.
To find out the name and type of the items found in the current Notes document, use NotesListItem.
<New Value>: Type of the modified Lotus Notes item
New value for the specified Lotus Notes item.

Modifying an array Lotus Notes item Hide the details

<Result> = NotesModifyItem(<Session Identifier> , <Lotus Notes Item> , <Array of New Values>)
<Result>: Boolean
  • True if the Lotus Notes item was modified,
  • False otherwise.
The ErrorOccurred variable is set to True if an error occurred. To find out the error details, use ErrorInfo associated with the errMessage constant.
<Session Identifier>: Integer
Identifier of the session to use. This identifier is returned by EmailStartNotesSession or by NotesOpenDatabase.
<Lotus Notes Item>: Character string
Name of the Lotus Notes item whose value must be modified. The Lotus Notes item is added if it does not exist.
To find out the name and type of the items found in the current Notes document, use NotesListItem.
<Array of New Values>: One-dimensional array, same type as the modified Lotus Notes item
Array containing the new values for the specified Lotus Notes item.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230mess.dll
Minimum required version
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment