IsLink (NotesDatabase - JavaScript)

Read-only. Indicates whether a database is the target of a link.

Defined in

NotesDatabase

Syntax

isLink() : boolean
Legal value Description
true if the database is the target of a link
false if the database is not the target of a link

Usage

A link is a text file with an NSF extension whose only content is the full path name of a database. Accessing the link accesses the specified database.

The target database appears to exist at the location of the link. For example, the FilePath property returns the path of the link, not the target.

Examples

This button gets the path names of all linked databases in the local directory.
var msg = "Links in local directory";
var dbdir:NotesDbDirectory = session.getDbDirectory(null);
var db:NotesDatabase = dbdir.getFirstDatabase(NotesDbDirectory.DATABASE);
while (db != null) {
	if (db.isLink()) {
		msg = msg + "\n" + db.getFilePath();
	}
	db = dbdir.getNextDatabase();
}
if (msg.equals("Links in local directory")) msg = msg + "\nNone";
requestScope.status = msg;