Domino Code Fragment

Code Name*
Comment property
Date*
04/28/2024
Source (or email address if you prefer)*
Rlatulippe@romac.com
IP address:.3.15.174.76
Description*
This example prints the name and comment of the current agent.
Type*
Java
Categories*
(Misc)
Implementation:
Required Client:
Server:
Limitations:
Comments:
Files/Graphics attachments (if applicable): Code:
import lotus.notes.*;


public class commentagent extends AgentBase
{
 public void NotesMain()
   {
   try
     {
       Session s = getSession();
       AgentContext ac = s.getAgentContext();
       Agent agent = ac.getCurrentAgent();
       System.out.println
       ("Current Agent is " + agent.getName());
       System.out.println
       ("Comment : " + agent.getComment());
     }
   catch (Exception e)
     {
       e.printStackTrace();
     }
   }
}