Makes one document a response to another document. The two documents must be in the same database.
Call notesDocument .MakeResponse( document )
document
A NotesDocument. The document to which notesDocument becomes a response. If you specify Nothing, this method generates an error.
You must call Save after this method if you want to save the change you have made.
makeResponse method in Java™ Document class
ComposeWithReference @command in formula language