SelectDocuments (NotesNoteCollection - JavaScript)

読み書き可能。コレクションにデータ文書が含まれているかどうかを示します。

定義場所

NotesNoteCollection

構文

getSelectDocuments() : boolean

setSelectDocuments(flag:boolean) : void

適正値 説明
true データ文書が含まれていることを示します。
false データ文書が含まれていないことを示します。

使用法

このプロパティを設定するには、createNoteCollection (Database クラス)、selectAllDataNotes、selectAllNotes の各メソッドを使用します。

このボタンは、現在のデータベース内の文書から文書コレクションを作成し、それを 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;
}

言語間の参照

LotusScript® NotesNoteCollection クラスの SelectDocuments プロパティ