Home > Ask the Domino Experts > Application Development Questions & Answers > Sequential numbering system for Notes apps
Ask The Domino Expert: Questions & Answers
EMAIL THIS

Sequential numbering system for Notes apps

Brian Mahoney EXPERT RESPONSE FROM: Brian Mahoney

Pose a Question
Other Domino Categories
Meet all Domino Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 28 August 2005
The utility we currently use to automatically number Lotus Notes documents is Sequel Num 3.1 from Sentor Communications Pty. in Australia. However, the software was last updated six years ago and now it does not work very well when we are replicating databases. Can you suggest an alternative tool or approach to providing a automated sequential numbering system for Lotus Notes applications? Our platform is Notes 6.5.

>

I am not aware of any current products that support this feature. Actually, I avoid a sequential numbering whenever possible because most applications exist on more than one server and keeping the documents sequential across servers is problematic at best.

MEMBER FEEDBACK TO THIS ASK THE EXPERT Q&A:

I think you should qualify your answer more. We have several databases where we use the same sequence numbering libraries and which do not suffer from heavy new-document creations. (I think the largest number of users we've seen is maybe 200 simultaneous database users where only a small percentage of them are creating new documents.) I suspect that there is some heavy usage that would overload our scheme, but I honestly think our servers would catch on fire first.

I recognize that it's possible to get into a race condition where we can create multiple locks for the same document and thus create a save-conflict -- bUT that has not happened after several years of operation. We do not use Notes doc locks -- we have our own which allow us to keep some useful information in them (developed years before Notes offered the current doc locking scheme).

My point is: under some fairly broad circumstances, it's legit to generate sequence numbers in Notes when there are replica databases in active use.

(Side note: To be honest, this is one area where Notes should have created a set of functions and methods for users. I started with Notes in the 3.0 days and this was a major complaint back then. Some things never change.)

We cluster our servers and can generate numbers on the cluster servers -- yes, I know the danger, but this has not failed yet. If we are creating documents "off the cluster" where only periodic replication takes place, we set the sequence number to zero and, when the document replicates back to the main "sequence server", a periodic agent creates a sequence number for the document.

We're also careful to have the paste-in agent CHANGE sequence numbers for any pasted-in document (we also offer a "copy" action that retains the sequence number when needed)

We've extended the library to use locks and separate sequence documents for each form type and, if the sequence doc does not yet exist, create it on the fly.

I know the above sounds like a lot of work but it was necessary. The major benefit has proven to be the ability for other non-Notes applications to access our databases as if they were relational and use the sequence numbers as keys.

I'm not trying to show you up; I know of several sites where sequence numbering as we have implemented here is working very well and is key to the success of their databases. For sure, it's not foolproof but it does the job and it's reliable in this environment. Sometimes I/we get a bit bigoted against the not-perfect solutions but this is one that had to be done anyway.

—Bill W.

Do you have comments on this Ask the Expert question and response? Let us know.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
Application Development
Calculating results for a column in a Lotus Notes view
Do I use Formula or LotusScript to include a doclink to a Notes view?
'Customize this view' options are disabled in Lotus Notes databases
Give external users access to workflow-based Notes Domino applications
Setting the field value of a table
Troubleshooting non-delivery of agent notification e-mails
Exporting data from Microsoft Excel to Lotus Notes
How to send a form to a non-Lotus Notes email client
Manipulating the replication and form of profile documents
How to create an icon on an HTML page that opens the Lotus Notes database from a Lotus Notes client

Lotus Notes Domino Application Development
Create a dynamic user-driven navigator for a Notes/Domino application
Top 10 Lotus Notes/Domino coding and development tips of 2008
Lotus Notes Domino application development best practices
Mimic Lotus Notes Domino application functionality on the Web
Top 10 issues when developing Lotus Notes Domino Internet applications
Top 10 Lotus Notes Domino programming and development tips of 2007
Export Lotus Notes documents to Microsoft Word via Internet Explorer
A bevy of Notes/Domino development tips
How to protect your Lotus Notes application design
Adding an action to the Lotus Notes right-click menu

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



Lotus Notes Domino on Blackberry and mobile devices
HomeTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersDomino IT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts