JAVA/CORBA CLASSES
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 vc = view.getColumn(1); if (vc.getHeaderFontFace().equals("Helvetica")) { vc.setHeaderFontFace("Default Sans Serif"); System.out.println("Header font face = Default Sans Serif"); } else { vc.setHeaderFontFace("Helvetica"); System.out.println("Header font face = Helvetica"); } } catch(Exception e) { e.printStackTrace(); } } }
See Also