Lotus Software logo
IBM Lotus Domino Designer 8.5
  Versions 8.5 and 8.5.1






Examples: UserNameObject property

This agent gets a Name object for the current user and prints the common user name.

import lotus.domino.*;

public class JavaAgent extends AgentBase {
public void NotesMain() {
try {
Session session = getSession();
AgentContext agentContext = session.getAgentContext();
// (Your code goes here)
Name no = session.getUserNameObject();
String u = no.getCommon();
System.out.println("Common user name = " + u);
} catch(Exception e) {
e.printStackTrace();
}
}
}
Related topics
UserNameObject property




Library | Support | Terms of use |

Last updated: Monday, October 5, 2009