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(); Outline outline = db.getOutline("DiscOutline"); OutlineEntry entry = outline.getFirst(); while (entry != null) { System.out.println(entry.getAlias()); //entry.setHidden(false); entry.setHiddenFromNotes(false); entry.setHiddenFromWeb(false); entry.setUseHideFormula(true); entry.setHideFormula("@UserName = \"Snoopy\""); entry.setKeepSelectionFocus(false); outline.save(); entry = outline.getNext(entry); } } catch(Exception e) { e.printStackTrace(); } } }
See Also