Solved

Auto numbering the requests and sending/displaying the request ID

Posted on 2006-07-09
6
228 Views
Last Modified: 2013-12-18
Hi Experts:

Again, I need your help in fine tuning my application. You could have seen my previous questions and perfect replies.
Now, I have a application which is having a form and developed in Lotus for Requestor Submission and Approver Approving the requests. The application is hosted in a 2 server cluster environment and with cluster replication enabled for high availability. Here in my case, the requestor will access the application through web and the approver will access the same application through lotus notes client and approves the form. In this case, I would like to assign the request ID for each requests requested by the requestors from web. They should get their request ID after clicking the submit request button. It can be displayed on the webpage with ID and caption saying "thanks or blalalaballa" or they should get
mail with the details of the request but not the doc link or form. Because, the requestor will be using MS Outlook or Netscape POP3 mail clients.

I hope, I had explained throughly here on my query.

0
Comment
Question by:deivakumar
  • 3
6 Comments
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 17070898
Hi again :)

Do you have any special requirements for the ID? When a document is saved for the first time, it is given a unique ID by the Domino server, a 32-byte string. But I suppose that's not your idea of a "user-friendly" ID?
0
 

Author Comment

by:deivakumar
ID: 17070913
Oh! Not 32 byte string, just want a 5 or 6 digit numeric or alpha numeric IDs
0
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 17070997
Expected as much :) The subject is rather difficult, because you're never sure there isn't a replica somewhere on another server (or on a Notes client PC, used locally) that will not accidentally generate the same "unique" ID. What can be done is to use the ID from the most recent document, in combination with some letters that are unique for the situation: e.g. the server or the user's name.

The usual way to do this:
- a view sorted on the ID
- in the QuerySave of a form, open the view and get the ID of the last document
- calculate a new ID and put it in the document
0
 
LVL 46

Accepted Solution

by:
Sjef Bosman earned 500 total points
ID: 17071016
http:Q_20987922.html "automatically numbering documents - error"
http:Q_20975752.html "Duplicate Numbering happening in an auto numbering routine"
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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…
  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…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

920 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