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);

Use this function if you have NotesDocument and you need NotesXspDocument (eg. for data binding on xpage)

JavaScript (Server)
Mariusz Jakubowski
May 22, 2012 5:08 AM

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.

No comments yetLogin first to comment...