読み取り専用。ビューエントリに関連付けられた文書の文書 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();
if (requestScope.noteid == null) {
return null;
}
var doc:NotesDocument = database.getDocumentByID(requestScope.noteid);
return doc.getItemValueString("subject");