Examples: IsNumberAttribPercent property

This agent toggles displaying the number as a percentage 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.setNumberAttribPercent(!vc.isNumberAttribPercent());
      System.out.println("IsNumberAttribPercent = " +
        vc.isNumberAttribPercent());
        
    } catch(Exception e) {
      e.printStackTrace();
    }
  }
}