i am using this code it is show doclink but it is not opening it show some error.
var document1:NotesDocument = database.createDocument();
var rtitem:NotesRichTextItem = document1.createRichTextItem("body");
document1.replaceItemValue("Form", "memo");
document1.replaceItemValue("SendTo", "lotusadm@san.org");
document1.replaceItemValue("Subject", "Rajesh");
rtitem.appendText("Some text here... ");
rtitem.addNewLine(2);
rtitem.appendText("NotesDocument.NotesURL");
rtitem.appendDocLink(document1, "Some comment text");
rtitem.addNewLine(2);
document1.save();
document1.send();
Error:-
Please tell me how to open a doclink.