Examples: IsShowTwistie property
This agent toggles whether the first column in a view displays a twistie.
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("Categorized");
ViewColumn vc = view.getColumn(1);
vc.setShowTwistie(!vc.isShowTwistie());
System.out.println("IsShowTwistie = " + vc.isShowTwistie());
} catch(Exception e) {
e.printStackTrace();
}
}
}