JAVA/CORBA CLASSES


Examples: IsHidden property
This agent toggles whether a column is hidden.

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 vc = view.getColumn(3);
     vc.setHidden(!vc.isHidden());
     System.out.println("IsHidden = " + vc.isHidden());
       
   } catch(Exception e) {
     e.printStackTrace();
   }
 }
}

See Also