NameOfProfile (NotesDocument - JavaScript™)
Read-only. If a profile document, the name of the profile.
Defined in
NotesDocumentSyntax
getNameOfProfile() : string
Examples
This computed field displays the name of a profile document if the underlying object is a profile document. The global variablerequestScope.doc
is set before
the document is loaded.if (requestScope.doc.isProfile()) {
return requestScope.doc.getNameOfProfile();
} else {
return "Not a profile"
}