Creates a new item in a document and optionally sets the item value.
appendItemValue(name:string, value:int) : NotesItem
| Parameter | Description |
|---|---|
| name | The name of the new item. |
| value | The value of the new item. |
| Data type of value | Resulting Item |
|---|---|
| string | Text |
| int | Number |
| double | Number |
| NotesDateTime | Date-time item |
| java.util.Vector with string, int, double, or NotesDateTime elements | Multi-value text, number, or date-time item |
| NotesItem | Same data type as the NotesItem |
| Return value | Description |
|---|---|
| NotesItem | The new item. |
If the document has an item with the same name, this method does not replace it. It creates another item of the same name and gives it the value you specify.
var doc = database.createDocument();
doc.appendItemValue("Subject", requestScope.subject);
doc.save()
appendItemValue method in Java™ Document class