IsHierarchical (NotesName - JavaScript™)
Read-only. Indicates if a name is hierarchical.
Defined in
NotesNameSyntax
isHierarchical() : boolean
Legal value | Description |
---|---|
true |
if the name is hierarchical |
false |
if the name is not hierarchical |
Examples
This computed field returns theFrom
item
from a mail message but only the common name if it is hierarchical.if (currentDocument.hasItem("From")) {
var from:NotesName = session.createName(
currentDocument.getItemValueString("From"));
return from.isHierarchical() ? from.getCommon() : from.getCanonical();
} else {
return "Not a mail message";
}