NameOfProfile (NotesDocument - JavaScript)

Read-only. If a profile document, the name of the profile.

Defined in

NotesDocument

Syntax

getNameOfProfile() : string

Examples

This computed field displays the name of a profile document if the underlying object is a profile document. The global variable requestScope.doc is set before the document is loaded.
if (requestScope.doc.isProfile()) {
	return requestScope.doc.getNameOfProfile();
} else {
	return "Not a profile"
}