JAVA/CORBA CLASSES


Examples: IsNumberAttribPunctuated property
This agent toggles punctuation on thousandths for a numeric column.

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(6);
     vc.setNumberAttribPunctuated(!vc.isNumberAttribPunctuated());
     System.out.println("IsNumberAttribPunctuated = " +
       vc.isNumberAttribPunctuated());
       
   } catch(Exception e) {
     e.printStackTrace();
   }
 }
}

See Also