Solved

Lotus Notes Programming

Posted on 2007-11-27
7
693 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 100 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 400 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

This is an old article, please see an updated version of this article, located here: http://www.experts-exchange.com/articles/23619/Notes-8-5x-Windows-7-Notes-info-and-tips.html
For beginners of Lotus Notes user this is important to know about the types of files and their location supported by IBM Notes. Mostly users are unaware about how many file types are created and what their usages are. This Article is fully dedicated…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

687 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