.
HCLSoftware Business Partner
Domino Consulting Services
CRUCIAL Notes Tools
+1
212-599-2048
Domino Consulting Services
CRUCIAL Notes Tools
Domino administration
Notes development
Chat now
.
EN - English
CN - 中文
JP - 日本語
DE - Deutsch
FR - Français
BR - Português
RU - Pу́сский
IT - Italiano
IN - हिन्दी
ES - Español
KR - 한국어
ID - Indonesia
NL - Dutch
TR - Türkçe
SA - العربية
SE - Svenska
NO - Norsk
PL - Polski
TH - ไทย
DK - Dansk
MY - Malay
PH - Filipino
GR - Ελληνικά
FI - Suomi
IL - עברית
IE - Gaeilge
CZ - Čeština
UA - Українська
RO - Română
VN - Tiếng Việt
BD - বাংলা
HU - Magyar
Need a Domino Consultant? Call NotesMail +1 212-599-2048
-
HCLSoftware Business Partner
JAVA/CORBA CLASSES
Examples: addEntry, createEntry, and save methods, OutlineEntry FrameText, ImagesText, setNamedElement properties
1. This agent creates an entry as a subentry to the first entry in an outline.
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");
System.out.println(
"Creating entry ... Some Documents ...");
OutlineEntry entry = outline.createEntry(
"Some Documents",outline.getFirst(),
true,false);
entry.setNamedElement(db, "Database",
OutlineEntry.OUTLINE_CLASS_DATABASE);
entry.setFrameText("NotesView");
entry.setImagesText("Domino\\icons\\abook.gif");
entry.setLabel("Some Documents");
outline.save();
} catch(Exception e) {
e.printStackTrace();
}
}
}
2. This example creates a copy of the first entry in the "Some Documents" outline. The entry is then added to the outline after the second entry at the top level.
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("Some Documents");
OutlineEntry entryA = outline.getFirst();
OutlineEntry entryB = outline.getNext(entryA);
outline.createEntry(entryA,entryB,true,false);
outline.save();
} catch(Exception e) {
e.printStackTrace();
}
}
}
See Also
addEntry method
createEntry method
save method
ImagesText property
setNamedElement method
OutlineEntry class
FrameText property
Feedback on
Help
or
Product Usability
?
Help on Help
All Help Contents
Feedback on
Help
or
Usability
?
Help on Help
All Help Contents