Sequencing number on every new doc and change of category

hi,

can anyone please help me how to do sequencing numbers on every new doc and change of category?

that is, every Category in a DOcLib has its own sequence number that increments every NewDoc.

please help!

Subject: sequencing number on every new doc and change of category

I would create a lookup view that sorts on your sequenceNumber field, this way you know the first doc in this lookup view is the one with the highest number.

When assigning a new sequenceNumber - you do a lookup to this view, get the first doc, increment that doc’s sequenceNumber by one and use the result as your new number.

Sequencial numbering like this is definitely not reliable if remote users are replicating changes to the database. (Disconnected users could use the same number, only discovered upon replication.)

It’s really not bullet-proof even without replication. (Two users might create a document just at the same moment and grab the same number.)

I really avoid trying to generate sequencial doc numbers like this, because I’ve never seen a truely infallible way.

Regards, Brian

Subject: RE: sequencing number on every new doc and change of category

i did that already…but seems the sequence increments only on every new doc. what about on every change of category?

how will my script looks like? i’m new to designer…please help…

Subject: sequencing number on every new doc and change of category

Girlie,

You should try and search forum prior to asking these types of questions. The question of sequential numbering has been asked and answered dozens of times.

Here is a response I placed recently:

http://www-10.lotus.com/ldd/nd6forum.nsf/55c38d716d632d9b8525689b005ba1c0/43d00084343c7daf85256fc100560c2f?OpenDocument

HTH