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(); DocumentCollection dc = db.search("Subject = \"Test appendItemValue\""); if (dc.getCount() == 1) { Document doc = dc.getFirstDocument(); Integer intObj = new Integer(303); doc.replaceItemValue("integer", intObj); do {} while (!doc.save(false, false, true)); } } catch(NotesException e) { e.printStackTrace(); } } }
See Also