Hows about a new field for designer that is a sequence number (similar to an identity field on sql server/db2 etc).
So you could add a new field to a form and select datatype 'Sequence Number'. It auto-generates a sequence number in this field for every document that is saved using this form. Its be nice if saving via lotusscript also generated the sequence number without the need to do anything other than set the form field on the document.
Of course this gets complicated with replicas. Maybe it should be possible to choose to not maintain the sequence number across replicas or if you want to do this it uses the adminstration server specified in the acl as the central place to lookup the sequence?
Or maybe this ought to be a separate design element but simply keyed to the form. What d'all think?