ServerName (NotesSession - JavaScript)

Read-only. The full name of the server that the session is running on.

Defined in

NotesSession

Syntax

getServerName() : string

Usage

If the server name is hierarchical, this property returns the fully distinguished name.

This property is null if the session is not running on a server.

Examples

This computed field displays the common user name, server name, and distinguished user name for the current session.
var server = session.getServerName();
if (server != "") {
	server = " on server " + server;
} else {
	server = " locally";
}
return "You are logged in as " + session.getCommonUserName() +
server + ". Your full name is " + session.getUserName() + "."