Hi Folks,

 

I would like to auto-generate unique identifiers for XML documents, but I
need to prevent them from being assigned to multiple documents.  For
example, when inputting information into a form, the unique ID must be
filled in prior to saving the form, but such that other forms being created
in sequence will obtain the next available unique ID.  

 

I'll probably create a list of unique IDs to work with(as they will map to
other unique record identifiers) from which I can set the next available
unique ID as record IDs are added, but again I would like to ensure no
conflicts.  For example:

 

Record ID            Unique ID

=======             ========

RecA1                   UID01

RecB2                    UID02

RecA2                   UID03

RecC1                    UID04

 

and so on such that adding the next Record ID will automatically have a UID
of UID05 assigned to it.  I recognize that it is simple enough to do this
unless an attempt to add 2 new records occurs simultaneously.

 

Thank you!

 

Tim Meagher

_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to