?
Solved

Lotus Notes Programming

Posted on 2007-11-27
7
Medium Priority
?
705 Views
Last Modified: 2013-12-18
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
Comment
Question by:damixa
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 19

Assisted Solution

by:madheeswar
madheeswar earned 400 total points
ID: 20357461
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
 

Author Comment

by:damixa
ID: 20357600
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
 
LVL 46

Accepted Solution

by:
Sjef Bosman earned 1600 total points
ID: 20358325
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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 63

Expert Comment

by:SysExpert
ID: 20362707
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
 

Author Comment

by:damixa
ID: 20363546
unfortunately the initials are set in the system in another way. according to the users windows login.
0
 

Author Comment

by:damixa
ID: 20363639
Well this formula worked for me.
@NameLookup( [NoUpdate] ; @UserName ; "ShortName")
0
 

Author Closing Comment

by:damixa
ID: 31411176
Although @dblookup didnt work for me i wanted to split the points so thanks guys

0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For Desktop Techs: How to retain a user's Notes configuration data when swapping out the end user's computer. (Assuming that you are not upgrading to a completely different version of Notes client) All you need to do is: 1) install Notes o…
Article by: Rob
Notes 8.5 Archiving Steps and Tips This article covers setting up a Notes archive, and helps understand some of the menu choices making setting up and maintaining a Notes archive file easier.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question