getOutline (NotesDatabase - JavaScript)

Gets an outline in the current database.

Defined in

NotesDatabase

Syntax

getOutline(outlinename:string) : NotesOutline
Parameter Description
outlinename The name of the outline.
Return value Description
NotesOutline The outline.

Usage

An exception occurs if the outline does not exist.

Examples

This computed field displays information on an outline.
var db:NotesDatabase = session.getDatabase("", "headline", false);
if (database == null) {
	return "No headline.nsf";
} else {
	try { 
		var outline:NotesOutline = db.getOutline("SubscriptionFormOutline");
		return outline.getName() + ": first entry = " + outline.getFirst().getLabel();
	} catch(e) {
		return "No SubscriptionFormOutline"
	}
}