Server (NotesDatabase - JavaScript)

Read-only. The name of the server where a database resides.

Defined in

NotesDatabase

Syntax

getServer() : string

Usage

If the database is on a workstation, the 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 server for the current database.
var server = database.getServer();
if (server.isEmpty()) {
	return "Local";
} else {
	return server;
}