JAVA/CORBA クラス


例:IsSecondaryResort プロパティ
次のエージェントは、列が 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.isResortAscending() | vc.isResortDescending())
vc.setSecondaryResort(!vc.isSecondaryResort());
System.out.println("IsSecondaryResort = " + vc.isSecondaryResort());

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

関連項目