TemplateName (NotesDatabase - JavaScript™)
Read-only. The template name of a database, if the database is a template. If the database is not a template, returns an empty string.
Defined in
NotesDatabaseSyntax
getTemplateName() : string
Usage
A database does not need to be open to use this property.Examples
This computed field returns the template name of an NTF file.var db:NotesDatabase = session.getDatabase("", "mailbox.ntf", false);
if (db == null) {
return "No mailbox.ntf!";
} else {
var template = db.getTemplateName();
if (template.isEmpty()) {
return "Not a template";
} else {
return template;
}
}