JAVA/CORBA CLASSES
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"); view.setAutoUpdate(false); view.setAutoUpdate(false); ViewEntryCollection vec = view.getAllEntries(); System.out.println("Parent is " + vec.getParent().getName()); System.out.println("Number of entries = " + vec.getCount()); ViewEntry entry = vec.getFirstEntry(); while (entry != null) { System.out.println("Entry is at position " + entry.getPosition('.')); entry = vec.getNextEntry(); } } catch(Exception e) { e.printStackTrace(); } } }
See Also