getCurrentDatabase (NotesSession - JavaScript)

Creates a NotesDatabase object that represents the current database and opens the database.

Defined in

NotesSession

Syntax

getCurrentDatabase() : NotesDatabase
Return value Description
NotesDatabase A NotesDatabase object that can be used to access the current database.

Usage

See the NotesDatabase class for additional descriptions and examples.

The return value of this method is effectively the same as the database global object.

Examples

This computed field returns the title of the current database.
return database.getTitle()