アイテムを文書から削除します。
パラメータ | 説明 |
---|---|
name | 文書から削除するアイテムの名前。 指定した名前を持つアイテムが複数ある場合は、その名前のアイテムがすべて削除されます。指定した名前を持つアイテムが存在しない場合は、このメソッドを実行しても何も起きません。 |
var doc:NotesDocument = currentDocument.getDocument();
if (doc.hasItem("quantity")) {
doc.removeItem("quantity");
if (doc.save()) {
requestScope.status = "Quantity item removed";
} else {
requestScope.status = "Save failed";
}
} else {
requestScope.status = "Document does not have quantity item";
}