makeResponse (NotesDocument - JavaScript™)
Makes one document a response to another.
Defined in
NotesDocumentSyntax
makeResponse(doc:NotesDocument) : void
Parameter | Description |
---|---|
doc |
The document to which the current document becomes a response. Cannot be null. |
Usage
You must call save after this method if you want to save the change you have made.The two documents must be in the same database.
Examples
This button creates a response to the current document.var doc:NotesDocument = currentDocument.getDocument();
var rdoc:NotesDocument = database.createDocument();
rdoc.appendItemValue("Form", "response");
rdoc.appendItemValue("Subject", session.getCommonUserName() + " has read this document<>");
rdoc.makeResponse(doc);
if (rdoc.save()) {
requestScope.status = "Response posted"
} else {
requestScope.status = "Unable to save response"
}