Solved

Lotus Notes Programming

Posted on 2007-11-27
7
675 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
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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

  In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
Notes Document Link used by IBM Notes is a link file which aids in the sharing of links to documents in email and webpages. The posts describe the importance and steps to create a Lotus Notes NDL file in brief.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

813 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now