JAVA/CORBA CLASSES


Examples: IsSecondaryResort property
This agent toggles whether a column is a secondary resortable column.

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(1);
     if (vc.isResortAscending() | vc.isResortDescending())
       vc.setSecondaryResort(!vc.isSecondaryResort());
     System.out.println("IsSecondaryResort = " + vc.isSecondaryResort());
       
   } catch(Exception e) {
     e.printStackTrace();
   }
 }
}

See Also