SelectDocuments (NotesNoteCollection - JavaScript)

Read-write. Indicates whether the collection contains the data documents.

Defined in

NotesNoteCollection

Syntax

getSelectDocuments() : boolean

setSelectDocuments(flag:boolean) : void

Legal value Description
true to indicate inclusion of data documents
false to indicate exclusion of data documents

Usage

The following methods set this property: createNoteCollection in Database selectAllDataNotes selectAllNotes

Examples

This button creates a note collection from the documents in the current database and exports it to a text file as DXL.
var stream:NotesStream = session.createStream();
var filename:string = "c:\\dxl\\";
filename = filename + database.getFileName();
filename = filename.substring(0, filename.length() - 3) + "dxl";
if (stream.open(filename)) {
	requestScope.status = "Opened " + filename;
	stream.truncate();
        
	// Create note collection
	var nc:NotesNoteCollection = database.createNoteCollection(false);
	nc.setSelectDocuments(true);
	nc.buildCollection();
        
	// Export note collection as DXL
	var exporter:NotesDxlExporter = session.createDxlExporter();
	var output:string = exporter.exportDxl(nc);
	stream.writeText(output);
	requestScope.status = "Exported note collection as DXL ";
	stream.close();
} else {
	requestScope.status = "Unable to open " + filename;
}