NoteID (NotesViewEntry - JavaScript)

読み取り専用。ビューエントリに関連付けられた文書の文書 ID。

定義場所

NotesViewEntry

構文

getNoteID() : string

使用法

このプロパティは、種類がカテゴリと合計のエントリに対して空ストリングを返します。

以下のボタンは、ビューエントリに対応する文書の文書 ID をグローバル変数に書き込みます。
var bycat:NotesView = database.getView("main");
if (requestScope.query.isEmpty()) return;
var entry:NotesViewEntry = bycat.getEntryByKey(requestScope.query);
if (entry == null || entry.getDocument() == null) {
	requestScope.noteid = null;
	return;
}
requestScope.noteid = entry.getNoteID();
以下の計算結果フィールドは、文書 ID を使用して文書内のアイテムの値を表示します。
if (requestScope.noteid == null) {
	return null;
}
var doc:NotesDocument = database.getDocumentByID(requestScope.noteid);
return doc.getItemValueString("subject");

言語間の参照

LotusScript® NotesViewEntry クラスの NoteID プロパティ

Java™ ViewEntry クラスの NoteID プロパティ