Create Document Datasources On-The-Fly

/***
 *** Create Document Datasources On-The-Fly
 ***
 *** Some of the possible parameters are listed below (only static)
 ***/

var data = new com.ibm.xsp.model.domino.DominoDocumentData();
data.setVar("document1"); /* Name of the datasource */
view.addData(data);

/*** Some possible parameters as shown in designer ***/
data.setComputeWithForm("both"); /* compute with form */
data.setIgnoreRequestParams(true); /* true or false */
data.setParentId("0123456789ABCDEF0123456789ABCDEF");
data.setAllowDeletedDocs(true); ; /* true or false */
data.setSaveLinksAs("UseWeb");
data.setFormName("Test");
data.setRequestParamPrefix("prefix");
data.setScope("request");
data.setAction("editDocument");
data.setConcurrencyMode("force");
data.setDocumentId("0123456789ABCDEF0123456789ABCDEF");





Example how a Domino Document Datasource can be created on the fly with SSJS.

More details can be found here: http://hasselba.ch/blog/?p=442

JavaScript (Server)
Sven Hasselbach
December 23, 2011 10:55 AM
Rating
282

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...