Database db = s.getDatabase( myDB );
Access to View
After we success to open the database, we can access the views and folders
in the database through getView and getViews. With the View class, we can
locate documents within views and folders and perform operations there.
View view = db.getView(viewname);
The viewname must contain the name of a view or a folder in the Domino
database. The view or folder name must be specified exactly.
Access to documents with ViewNavigator
ViewNavigator is an object that is created under the View object and selects
the entries in a selected view and navigates the view to access a specific
document in the view.
ViewNavigator can be created through several methods:
  createViewNav
Creates a view navigator for all the entries in a view, for example:
Session s = NotesFactory.createSession( bdtest3:8000 );
Database db = s.getDatabase( Redbooks );
View view = db.getView( platform sorted );
ViewNavigator viewnav = view.createViewNav();
This program will get all entries from the Redbooks database on server
bdtest1 from the view platform sorted. The content of viewnav may have a
category or document depending on the structure of the database.
  createViewNavFromCategory
This method will create a view navigator for all the entries in a view under
a specified category. For example, we use this methods to get all entries in
the selected category of the Redbooks database:
Session s = NotesFactory.createSession( bdtest3:8000 );
Database db = s.getDatabase( Redbooks );
View view = db.getView( platform sorted );
ViewNavigator viewnav = view.createViewNavFromCategory( AS/400 );
This program will get all entries from the Redbooks database in server
bdtest1 on the view platform sorted and at the category AS/400.
  createViewNavMaxLevel
This method will create a view navigator for all entries in a view down to a
specified level. For example, if we need to get all entries at the top level of
view, we can use the following code:
96
Linux Web Hosting with WebSphere, DB2, and Domino




  

Home

About Services Network Support FAQ Order Contact
 

Linux Web Hosting

Our partners:Jsp Web Hosting Unlimited Web Hosting Cheapest Web Hosting  Java Web Hosting Web Templates Best Web Templates PHP Mysql Web Hosting Interland Web Hosting Cheap Web Hosting PHP Web Hosting Tomcat Web Hosting Quality Web Hosting Best Web Hosting  Mac Web Hosting 

Lunarwebhost.net  Business web hosting division of Vision Web Hosting Inc. All rights reserved