HeaderLines (NotesView - JavaScript)

Read-only. The number of lines in the header of a view.

Defined in

NotesView

Syntax

getHeaderLines() : int

Examples

This button gets information on all the views in the current database: whether the view is hierarchical, the number of header lines, and the number of row lines.
var views = database.getViews().iterator();
while (views.hasNext()) {
	var v:NotesView = views.next();
	requestScope.status += "\n" + v.getName();
	var hier:string = v.isHierarchical() ? "Hierarchical" : "Flat";
	requestScope.status +=
		"\n\t" + hier + " view";
	requestScope.status +=
		"\n\tHeader lines: " + v.getHeaderLines().toFixed();
	requestScope.status +=
		"\n\tRow lines: " + v.getRowLines().toFixed();
}