Examples: setAliases method
This agent sets two aliases for the "By Category" view.
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");
// Sets 2 aliases ByCat and BC
view.setAliases("ByCat|BC");
} catch(Exception e) {
e.printStackTrace();
}
}
}