LOTUSSCRIPT/COM/OLE CLASSES
Replaces all items of the specified name with one new item, which is assigned the specified value. If the document does not contain an item with the specified name, the method creates a new item and adds it to the document.
Defined in
NotesDocument
Syntax
Set notesItem = notesDocument.ReplaceItemValue( itemName$, value )
Parameters
itemName$
Note ReplaceItemValue method takes the NotesDateTime object as input directly.
notesItem
The IsSummary property of the item defaults to False, which means that the item value cannot be displayed in a view or folder. You must explicitly set IsSummary to True if you want the value to be displayed in a view or folder.
"Extended class" syntax
You can also change an item's value using the NotesDocument "extended class" syntax, which eliminates the need for ReplaceItemValue. For example, you have the following script:
Language cross-reference
replaceItemValue method in Java Document class
@SetField function in formula language
@SetDocField function in formula language
FIELD keyword in formula language
Example See Also