星期二, 10月 24, 2023

Domino Document

 https://help.hcltechsw.com/domino/welcome/index.html


Domino 12.0.2 Designer


Developer View for IBM/Lotus Notes


WebSphere MQ Programming Using Base Classes for Java


(PDF) Integrate Domino and WebSphere MQ - DOKUMEN.TIPS


(PDF) Writing Java to build applications using IBM Lotus Domino Designer


Example: Working with sections in Java classes
This agent displays properties for all the sections in the Body item of the current document.
import lotus.domino.*;

public class JavaAgent extends AgentBase {

 public void NotesMain() {

   try {
     Session session = getSession();
     AgentContext agentContext = session.getAgentContext();

     // (Your code goes here)
     DocumentCollection dc = agentContext.getUnprocessedDocuments();
     Document doc = dc.getFirstDocument();
     RichTextItem body = (RichTextItem)doc.getFirstItem("Body");
     RichTextNavigator rtnav = body.createNavigator();
     if (rtnav.findFirstElement(RichTextItem.RTELEM_TYPE_SECTION)) {
       do {
         RichTextSection rtsection = (RichTextSection)rtnav.getElement();
         System.out.println(
           "Title = " + rtsection.getTitle());
         System.out.println("\tBar color = " +
           rtsection.getBarColor().getNotesColor());
         System.out.println(
           "\tIs expanded = " + rtsection.isExpanded());
         System.out.println(
           "\tTitle style font = " + rtsection.getTitleStyle().getFont());
       } while (rtnav.findNextElement());
     }
     else
       System.out.println("No sections in Body");

   } catch(Exception e) {
     e.printStackTrace();
   }
 }
}  
  



沒有留言: