Solved

Creating unique id's in Lotus Notes

Posted on 2007-11-28
2
806 Views
Last Modified: 2013-12-18
Today, I was approached by represenatives from my HR department. They want to include a function to create a unique id for all employees. It needs to be six characters and can be alpha-numeric. To be more efficient, I think I should produce a list of all posibilities and then start going sequentially through the list sequentially. I think this would work better then trying to randomly create an id, then checking to see if it has been used before.

I guess my first question is, any ideas on how to get Lotus Notes to produce this for me?

My second question is, got any better ideas?
0
Comment
Question by:NormCox
2 Comments
 
LVL 22

Accepted Solution

by:
Bill-Hanson earned 500 total points
ID: 20369153
Use this function:

    @Right(@Unique; "-")

It is guaranteed to be unique and is 6 chars.  If you need it in LotusScript, use this:

    Evaluate({@Right(@Unique; "-")})(0)
0
 
LVL 1

Author Comment

by:NormCox
ID: 20373595
I guess I never had read the first line in the @Unique entry in designer help. Thanks very much for you assistance.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

Suggested Solutions

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…
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.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

726 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