exportDxl (NotesDxlExporter - JavaScript)

Domino® データを DXL データに変換します。

定義場所

NotesDxlExporter

構文

exportDxl(database:NotesDatabase) : string

exportDxl(document:NotesDocument) : string

exportDxl(documentcollection:NotesDocumentCollection) : string

exportDxl(notecollection:NotesNoteCollection) : string

パラメータ 説明
Database database 変換する Domino データです。この場合はデータベース全体です。
Document document 変換する Domino データです。この場合は 1 つの文書です。
DocumentCollection documentcollection 変換する Domino データです。この場合は 1 つの文書コレクション内の文書です。
NoteCollection notecollection 変換する Domino データです。この場合は 1 つの文書コレクション内の要素です。

このボタンは、現在のデータベース内の文書から文書コレクションを作成し、それを 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;
}
戻り値 説明
String エクスポートされた DXL。

言語間の参照

LotusScript® NotesDXLExporter クラスの Export

LotusScript NotesXMLProcessor クラスの Process

LotusScript NotesXMLProcessor クラスの SetInput

LotusScript NotesXMLProcessor クラスの SetOutput