getDbDirectory (NotesSession - JavaScript)

Gets a directory of databases.

Defined in

NotesSession

Syntax

getDbDirectory(server:string) : NotesDbDirectory
Parameter Description
server The name of the server with database files you want to navigate. Use the empty string to indicate the current session's environment.
Return value Description
NotesDbDirectory A directory of databases on the server.

Usage

See the NotesDbDirectory class for descriptions and examples.

Examples

This value formula for a list box displays the names of all the databases in the current directory.
var out = new Array();
var dir:NotesDbDirectory = session.getDbDirectory("");
var db:NotesDatabase = dir.getFirstDatabase(NotesDbDirectory.DATABASE);
while (db != null) {
	out.push(db.getFileName());
	db = dir.getNextDatabase();
}
return out