Domino Code Fragment
| Code Name* UserNameObject property | Date* 01/05/2026 | Source (or email address if you prefer)* [email protected] IP address:.172.71.120.96 | |
| Description* This agent gets a Name object for the current user and prints the common user name. | Type* Java | Categories* (Misc) | |
| Implementation: | Required Client: | Server: |
| Limitations: | Comments: | |
public class usernameobjectagent extends AgentBase
{
public void NotesMain()
{
try
{
Session s = getSession();
Name no = s.getUserNameObject();
String u = no.getCommon();
System.out.println("Common user name = " + u);
}
catch (Exception e)
{
e.printStackTrace();
}
}
}