Examples: ViewInheritedName (View - Java™)
This agent displays the inherited name for the 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("Main2");
String vn = view.getViewInheritedName();
if (vn.length() == 0)
vn = "None";
System.out.println("ViewInheritedName = " + vn);
} catch(Exception e) {
e.printStackTrace();
}
}
}