Q

New documents in Notes need unique numbers

I have 15 people creating new documents in my Lotus Notes application (Help Desk, 400 documents per day)and they want every document to have a unique number (it has to be ordered 1,2,3,4,5,6,....). Approach with the view or profile doc is not good. Thank You in advance.
Sequential Numbering has been difficult within NOtes for a number of reasons. the biggest problem is that multiple documents are created during the same relative time periods. It is better to use @Unique or a custom time stamp to create a tracking number for documents. If you allow users to generate documents on multiple replicas of an application, keeping the numbers sequential is almost impossible.

If you must use sequential numbering, I have found the best method is to keep track of the number in a profile document or similar unique document. When a document is created, don't get the next sequence number wait until the document is being saved. I prefer to use the QuerySave Event to get the current sequence number from the profile document, increment it and save the profile. The the incremented value can be used as the sequence...

number.

This was first published in March 2001

Dig deeper on Domino Resources

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchWinIT

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchEnterpriseLinux

SearchVirtualDataCentre.co.UK

Close