NotesItem (Function) In french: NotesChamp Returns the value of items for the current Notes document in Lotus Notes.
// Start a Lotus Notes session SessionID is int SessionID = EmailStartNotesSession("Password", "MarsServer", ... "mail\julia.nsf", "C:\Users\Julia\AppData\Local\Lotus\Notes\Data\user.id") ... // Read the first document NotesDocumentFirst(SessionID) // Retrieve the Lotus Notes items found in this document ListLotusNotesItem is string ALotusNotesItem is string ListLotusNotesItem = NotesListItem(SessionID) // For each Lotus Notes item FOR EACH STRING ALotusNotesItem OF ListLotusNotesItem SEPARATED BY CR // Add the name of the Lotus Notes item and its value into a List Box control ListAdd(LIST_LotusNotesItem, ALotusNotesItem + CR + ... NotesItem(SessionID, ALotusNotesItem)) END
Syntax
Finding out the value of a simple Lotus Notes item Hide the details
<Result> = NotesItem(<Session identifier> , <Lotus Notes item>)
<Result>: Type of value of Lotus Notes item - Value of specified Lotus Notes item.
- Empty string ("") if the Lotus Notes item does not exist.
If an error occurs, the ErrorOccurred variable is set to True. To get more details on the error, use ErrorInfo with the errMessage constant.
<Session identifier>: Integer Session ID to be used. This identifier is returned by EmailStartNotesSession or NotesOpenDatabase. <Lotus Notes item>: Character string Name of the Lotus Notes item whose value is requested. To know the name and type of the items in the current Notes document, use NotesListItem.
Finding out the value of a composite Lotus Notes item Hide the details
<Result> = NotesItem(<Session identifier> , <Lotus Notes item> [, <Index of Lotus Notes item>])
<Result>: Type of value of Lotus Notes item - Value of the specified Lotus Notes item for the given index.
- All the values of the Lotus Notes item separated by CR characters if <Index of Lotus Notes item> is not specified.
- Empty string ("") if the Lotus Notes item and/or the index does not exist.
If an error occurs, the ErrorOccurred variable is set to True. To get more details on the error, use ErrorInfo with the errMessage constant.
<Session identifier>: Integer Session ID to be used. This identifier is returned by EmailStartNotesSession or NotesOpenDatabase. <Lotus Notes item>: Character string Name of the Lotus Notes item whose value is requested. To know the name and type of the items in the current Notes document, use NotesListItem. <Index of Lotus Notes item>: Optional integer Index of Lotus Notes item whose value is requested. If this parameter is not specified, <Result> will contain all the values of the Lotus Notes item separated by CR characters.
Finding out the value of a composite Lotus Notes item (in array format) Hide the details
<Result> = NotesItem(<Session identifier> , <Lotus Notes item> , <Array of values>)
<Result>: Boolean - True if the <Array of values> was filled with the values of the specified Lotus Notes item,
- False otherwise.
If an error occurs, the ErrorOccurred variable is set to True. To get more details on the error, use ErrorInfo with the errMessage constant.
<Session identifier>: Integer Session ID to be used. This identifier is returned by EmailStartNotesSession or NotesOpenDatabase. <Lotus Notes item>: Character string Name of the Lotus Notes item whose value is requested. To know the name and type of the items in the current Notes document, use NotesListItem. <Array of values>: One-dimensional array, same type as the values of the Lotus Notes item Name of array where the values of the Lotus Notes item will be initialized.
This page is also available for…
|
|
|
|