• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 237
  • Last Modified:

Auto numbering the requests and sending/displaying the request ID

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
deivakumar
Asked:
deivakumar
  • 3
1 Solution
 
Sjef BosmanGroupware ConsultantCommented:
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
 
deivakumarAuthor Commented:
Oh! Not 32 byte string, just want a 5 or 6 digit numeric or alpha numeric IDs
0
 
Sjef BosmanGroupware ConsultantCommented:
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
 
Sjef BosmanGroupware ConsultantCommented:
http:Q_20987922.html "automatically numbering documents - error"
http:Q_20975752.html "Duplicate Numbering happening in an auto numbering routine"
0

Featured Post

Independent Software Vendors: 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!

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now