getDocument (NotesXspDocument - JavaScript)

NotesDocument オブジェクトとして文書を取得します。

構文

getDocument() : NotesDocument (JavaScript)

getDocument(applyChanges:boolean) : NotesDocument (JavaScript)

パラメータ 説明
applyChanges データストアに対する変更をすべて適用する場合は true、変更を適用しない場合は false (デフォルト) を指定します。
戻り値 説明
NotesDocument 文書。

以下のボタン onclick イベントは、現在の XPage に関連する文書 (データストアに対する変更内容を適用して更新済み) の XML を取得します。XPage のその他の部分については、複数行が設定された編集ボックスに requestScope.xml がバインドされます。
requestScope.xml = document1.getDocument(true).generateXML()