Examples: ColumnValues property (ViewEntry - Java)

This agent gets, for each column in a view entry, the type of value and the value.

import lotus.domino.*;
import java.util.Vector;
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);
      ViewEntry entry =
      view.getEntryByKey("Spanish leather", false);
      if (entry != null) {
        Vector v = entry.getColumnValues();
        for (int i=0; i<v.size(); i++) {
          if (v.elementAt(i) != null) {
            System.out.println("Column " + (i+1) + ":");
            System.out.println("\t" + 
            v.elementAt(i).getClass().getName());
            System.out.println("\t" + v.elementAt(i)); } } }
    } catch(Exception e) {
      e.printStackTrace();
    }
  }
}