|
|
Question : Lotus domino query
|
|
hey guys need help
new to the lotus and domino world..... developing an appln which would run in a web browser using lotus notes and domino 5 . where do u u write ur code is it using using agents,java or lotus scripting ..
just trying to find out how to generate a running serial no like the serial no would be MM-YYYY-Number , number would be running eg ..1,2 and so on, running no would get reinitialised every month
serial no should be shown when the form is opened for data entry ..
plz help
|
Answer : Lotus domino query
|
|
Madheeswar's answers will work -- I know, because I wrote them. You will run into one probellm, though. Your requirement is that the new serial number shows as soon as the page is opened (before it is saved). The solutions were designed to assign a serial number as the document is saved, not opened. That's because the solutions simply use the last serial number currently in use plus one for the new serial number. So, imagine this scenario, if instead of calculating it at first save, I calculated it on first display:
Current last serial number is 12 Charlie opens a page, it shows 13 Charlie saves New current last number is 13 John opens a new page, it displays 14 Jane opens a new page, it displays 14 John saves Jane saves
I now have two number 14's. That's because When Jane opened her page, the last saved document was still Charlie's -- John's wasn't saved yet.
If this is a hard and fast requirement, then you need a special record somewhere just to hold the current value and get it updated.
|
|
|
|
|