Examples: Title property (ViewColumn - Java™)
This agent changes the title of column 2 in the "Categorized" view to be the same as the title of column 5 in the "All Documents" 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 viewCat = db.getView("Categorized");
ViewColumn vcCat = viewCat.getColumn(2);
View viewAll = db.getView("All Documents");
ViewColumn vcAll = viewAll.getColumn(5);
vcCat.setTitle(vcAll.getTitle());
System.out.println("Title: " + vcCat.getTitle());
} catch(Exception e) {
e.printStackTrace();
}
}
}