OrgDirectoryPath (NotesSession - JavaScript)

Read-only. The default directory of the current user in a hosted organization.

Defined in

NotesSession

Syntax

getOrgDirectoryPath() : string

Usage

When accessing a database in a hosted organization, prefix this value to the database path name.

This property does not include a trailing separator, for example, the backslash in a Windows environment.

In a non-hosted organization environment, this value is an empty string.

Examples

This computed field prefixes the organization directory, if any, to a database name.
try {

var org = session.getOrgDirectoryPath();
var fn = "foo.nsf";
if (!org.equals("") && !org.endsWith("\\")) {
	org = org + "\\";
}var db:NotesDatabase = session.getDatabase("", org + fn);
return db.getTitle()

} catch(e) {
	return e.toString()
}