DesignTemplateName (NotesDatabase - JavaScript)

Read-only. The name of the design template from which a database inherits its design. If the database does not inherit its design from a design template, returns an empty string.

Defined in

NotesDatabase

Syntax

getDesignTemplateName() : string

Usage

If a database inherits a specific design element (such as a form) but not its entire design from a template, this property returns an empty string.

A database does not need to be open to use this property.

Examples

This computed field displays the name of the design template for the current database.
var title = database.getTitle();
var template = database.getDesignTemplateName();
if (template != "") {
	return "Database \"" + title + "\" inherits its design from " + template;
} else {
	return "Database \"" + title + "\" did not inherit its design from a template";
}