UniversalID (NotesViewEntry - JavaScript)

Read-only. The universal ID of a document associated with a view entry.

Defined in

NotesViewEntry

Syntax

getUniversalID() : string

Usage

This property returns the empty string for entries of type category and total.

The ID is a 32-character combination of hexadecimal digits (0-9, A-F) that uniquely identifies a document across all replicas of a database.

Examples

This button writes the document universal ID for a view entry to a global variable.
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.unid = null;
	return;
}
requestScope.unid = entry.getUniversalID();
This computed field uses the universal ID to display the value of an item in the document.
if (requestScope.unid == null) {
	return null;
}
var doc:NotesDocument = database.getDocumentByID(requestScope.unid);
return doc.getItemValueString("subject");