LOTUSSCRIPT/COM/OLE CLASSES


NotesView class
Example

Represents a view or folder of a database and provides access to documents within it.

Containment

Contained by: NotesDatabase, NotesUIView

Contains: NotesDocument, NotesViewColumn, NotesViewEntry, NotesViewEntryCollection, and NotesViewNavigator

Properties

Aliases

AllEntries

AutoUpdate

BackgroundColor

ColumnCount

ColumnNames

Columns

Created

EntryCount

HeaderLines

HttpURL

IsCalendar

IsCategorized

IsConflict

IsDefaultView

IsFolder

IsHierarchical

IsModified

IsPrivate

IsProhibitDesignRefresh

LastModified

LockHolders

Name

NotesURL

Parent

ProtectReaders

Readers

RowLines

SelectionFormula

Spacing

TopLevelEntryCount

UniversalID

ViewInheritedName

Methods

Clear

CopyColumn

CreateColumn

CreateViewNav

CreateViewNavFrom

CreateViewNavFromAllUnread

CreateViewNavFromCategory

CreateViewNavFromChildren

CreateViewNavFromDescendants

CreateViewNavMaxLevel

FTSearch

GetAllDocumentsByKey

GetAllEntriesByKey

GetAllReadEntries

GetAllUnreadEntries

GetChild

GetColumn

GetDocumentByKey

GetEntryByKey

GetFirstDocument

GetLastDocument

GetNextDocument

GetNextSibling

GetNthDocument

GetParentDocument

GetPrevDocument

GetPrevSibling

Lock

LockProvisional

MarkAllRead

MarkAllUnread

Refresh

Remove

ResortView method

RemoveColumn

SetAliases

UnLock

Access

You access a view or folder through the NotesDatabase object that contains it. There are two ways:


Both options return NotesView objects that represent public views and/or folders in the database, or private views and/or folders owned by the effective id running the LotusScript agent and stored in the database. Private views and folders in the desktop cannot be accessed using LotusScript.

Usage

Both NotesDocumentCollection and NotesView objects provide access to both selected and all documents within a database. Use a NotesView object if:


Views are the more efficient means of accessing documents because they are already indexed by the database itself.

If you create a NotesView object then change a document so that it affects the underlying view, navigation with the NotesView object may produce incorrect results.You must refresh the NotesView object or create a new one. Document changes that affect views include additions, deletions, and changes to fields used by selection formulas. See Refresh for further information.

Automatic updates: avoid

Avoid automatically updating the view by explicitly setting AutoUpdate to False especially if the view is a base for navigators or entry collections. Automatic updates degrade performance and may invalidate entries in child objects ("Entry not found in index"). You can update the view as needed with Refresh.

Language cross-reference

FolderProperties @command in formula language

Example
See Also