IsProfile (NotesDocument - JavaScript™)
Read-only. Indicates whether a NotesDocument object is a profile document.
Defined in
NotesDocumentSyntax
isProfile() : boolean
Legal value | Description |
---|---|
true |
if the document is a profile document |
false |
if the document is not a profile document |
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"
}