Examples: IsSecondaryResortDescending property

This agent toggles whether a secondary resortable column is descending in resort order.

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.isSecondaryResort())
        vc.setSecondaryResortDescending(!vc.isSecondaryResortDescending());
      System.out.println("IsSecondaryResortDescending = " +
        vc.isSecondaryResortDescending());
        
    } catch(Exception e) {
      e.printStackTrace();
    }
  }
}