Wrap NotesDocument into NotesXspDocument


/**
 * Wraps NotesDocument into NotesXspDocument.
 * @param doc document to wrap
 * @return NotesXspDocument
 */ 
function wrapDocument(doc: NotesDocument): NotesXspDocument {
    return com.ibm.xsp.model.domino.wrapped.DominoDocument.wrap(doc.getParentDatabase().getFilePath(), doc, null, null, false, null);
}
All code submitted to OpenNTF XSnippets, whether submitted as a "Snippet" or in the body of a Comment, is provided under the Apache License Version 2.0. See Terms of Use for full details.
1 comment(s)Login first to comment...
jeniffer homes
(at 02:04 on 22.07.2016)
Wonderful piece of code, works straight out of the box. Thanks!