UntilTime (NotesDocumentCollection - JavaScript)

読み取り専用。NotesDatabasegetModifiedDocuments を介して取得されたコレクションのデータベース終了時刻です。

定義場所

NotesDocumentCollection

構文

getUntilTime() : NotesDateTime

使用法

この時刻は、もっとも最近の getModifiedDocuments の呼び出しの後に更新されたすべての文書を取得するために、再びこのメソッドを呼び出すときに、「since」時刻として指定しなければなりません。

データベースの時刻はシステムの時刻と異なる場合があります。もっとも最近の呼び出しの後で更新されたすべての文書を取得するための getModifiedDocuments ではシステムの時刻を使用しないでください。

getModifiedDocuments によって作成されたのではないコレクションについては、このプロパティは NULL を返します。

このボタンは、現在のデータベースから、最後にこのボタンがクリックされた後に更新されたすべての文書を取得します。
var profile:NotesDocument = database.getProfileDocument("UntilTimeProfile", null);
if (profile.hasItem("untilTime")) {
	var dt:NotesDateTime = profile.getItemValueDateTimeArray("untilTime")[0];
	var dc:NotesDocumentCollection = database.getModifiedDocuments(dt);
	requestScope.status = "Getting documents since " + dt.getLocalTime();
} else {
	var dc:NotesDocumentCollection = database.getModifiedDocuments(null);
	requestScope.status = "Getting documents since beginning";
}
profile.replaceItemValue("untilTime", dc.getUntilTime());
var doc:NotesDocument = dc.getFirstDocument();
while (doc != null) {
	requestScope.status += "¥n" + doc.getItemValueString("subject");
	var tmpdoc = dc.getNextDocument();
	doc.recycle();
	doc = tmpdoc;
}

言語間の参照

LotusScript® NotesDocumentCollection クラスの UntilTime プロパティ

Java™ DocumentCollection クラスの UntilTime プロパティ