JAVA/CORBA クラス


例:Title プロパティ
次のエージェントは、[Categorized] ビューの列 2 のタイトルを、「All Documents」ビューの列 5 のタイトルと同じに変更します。

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 viewCat = db.getView("Categorized");
     ViewColumn vcCat = viewCat.getColumn(2);
     View viewAll = db.getView("All Documents");
     ViewColumn vcAll = viewAll.getColumn(5);
     vcCat.setTitle(vcAll.getTitle());
     System.out.println("Title:" + vcCat.getTitle());

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

関連項目