Refreshing a view

Updates (additions, deletions, and changes) to a database are not reflected in an open view until it is refreshed. By default:

  • For local operations, a view refreshes automatically when a navigation method touches an updated document. You can suppress automatic refresh by setting isAutoUpdate of View to false.
  • For remote (IIOP) operations, a view does not refresh automatically. You can enable automatic refresh by setting isAutoUpdate of View to true. However, this turns off caching.

To explicitly refresh the view, call refresh of NotesView. For remote (IIOP) operations, this method invalidates the cache.

It is best to avoid automatically updating the view 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").