JAVA/CORBA クラス


例:IsSecondaryResortDescending プロパティ
次のエージェントは、2 次ソート可能な列の再ソート順が降順かどうかを切り替えます。

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();
   }
 }
}

関連項目