JAVA/CORBA CLASSES


Examples: getPrevCategory method
This agent gets the last category entry in a view.

import lotus.domino.*;
public class JavaAgent extends AgentBase {
 public void NotesMain() {
   try {
     Session session = getSession();
     AgentContext agentContext = session.getAgentContext();
     // (Your code goes here)
     Database db = agentContext.getCurrentDatabase();
     View view = db.getView("By Category");
     ViewNavigator nav = view.createViewNav();
     ViewEntry entry = nav.getLast();
     entry = nav.getPrevCategory();
     System.out.println("Last category has " +
     entry.getDescendantCount() + " descendants");
   } catch(Exception e) {
     e.printStackTrace();
   }
 }
}

See Also