Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 721
  • Last Modified:

Lotus Notes Programming

How to write the short name/initials of a user in lotus notes with formula
I have tried @Name([I];@Username)
but nothing shows up
thanks
0
damixa
Asked:
damixa
2 Solutions
 
madheeswarCommented:
I won't think you can get short name like that.
You need to write code for this.
Like-
res:=@dblookup("":"Nocache";"":"names.nsf";"($Users)");@Name([CN];@UserName);"ShortName");
@If(@Iserror(res);"";res)
0
 
damixaAuthor Commented:
Is there an error in the  --- names.nsf";"($Users)");@Name([CN----
before ;@ should be no )
well even i tried this code comes nothing up, an empty string, and there is a short name for each user in the database.
0
 
Sjef BosmanGroupware ConsultantCommented:
For the initials, I think that @Name([I];@Username) won't work. Here's why, it's from the Designer Help db, function @Name: "If you attempt to use the parameters A, G, I, P, Q, or S in Lotus Notes/Domino with existing user IDs, it may appear as though the parameters do not work. These parameters were added to take advantage of the addressing used for external mail and gateway products. When a mail message is received within Lotus Notes/Domino from an external mail source, the naming convention can include additional components. The @Name function can be used to manipulate the hierarchical name, including these additional components. Domino IDs and names do not use these additional components, therefore, it is not possible to use these six parameters with a standard Domino ID and name. "

Madheeswar's formula works (after your correction), but only on a server. It may be better to use the @NameLookup function.
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
SysExpertCommented:
I would grab the first letter of first and last name and use it for initials/Use the Left$ function or similar to do this.


I hope this helps !
0
 
damixaAuthor Commented:
unfortunately the initials are set in the system in another way. according to the users windows login.
0
 
damixaAuthor Commented:
Well this formula worked for me.
@NameLookup( [NoUpdate] ; @UserName ; "ShortName")
0
 
damixaAuthor Commented:
Although @dblookup didnt work for me i wanted to split the points so thanks guys

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now