ColumnIndentLevel (NotesViewEntry - JavaScript)

Read-only. The indent level of a view entry within its column.

Defined in

NotesViewEntry

Syntax

getColumnIndentLevel() : int

Usage

This property is useful for determining the response level of a document. Main documents are always at column indent level 0, response documents at column indent level 1, and so on.

Examples

This button gets values for the entries in a view and indents them according to their indent level. For level 0, the first column value is used. For other levels, the second column value is used. Entries for response documents are omitted.
var nav:NotesViewNavigator = database.getView("By category").createViewNav();
var entry:NotesViewEntry = nav.getFirst();
while (entry != null) {
	if (entry.getColumnIndentLevel() == 0) {
		var tabs:string = "";
		for (var i:int = 0; i < entry.getIndentLevel(); i++) {
			tabs = tabs + "\t";
		}
		var element:string = entry.getIndentLevel() == 0 ?
			entry.getColumnValues().firstElement().toString() :
			entry.getColumnValues().elementAt(1);
		requestScope.status += "\n" + tabs + element;
	}
	var tmpentry:NotesViewEntry = nav.getNext(entry);
	entry.recycle();
	entry = tmpentry;
}