JAVA/CORBA CLASSES


Examples: getColumn method
This agent gets the title of the first column 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("All Documents");
     ViewColumn column = view.getColumn(1);
     String title = column.getTitle();
     if (title.length() == 0) title = "No title";
     System.out.println
     ("First column is \"" + title + "\"");
   } catch(Exception e) {
     e.printStackTrace();
   }
 }
}

See Also