JAVA/CORBA クラス


例:createColumn メソッド
次のエージェントは、[Subject2] フィールドに基づき、[By Category] ビューの末尾に新しい列を作成します。

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("By Category");
     ViewColumn col = view.createColumn(
       view.getColumnCount() + 1,
       "Topic 2", "Subject2");
     System.out.println("Position:" + col.getPosition());
     System.out.println("Title:" + col.getTitle());
     System.out.println("Formula:" + col.getFormula());

   } catch(Exception e) {
     e.printStackTrace();
   }
 }
}

関連項目