Lotus Software logo
IBM Lotus Domino Designer 8.5
  Versions 8.5 and 8.5.1






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();
}
}
}

Related topics
getColumn method




Library | Support | Terms of use |

Last updated: Monday, October 5, 2009