In “Traditional” Notes Development I might often put a unique field on a document using a computed when composed field with the value of @Unique. The format of the value is something like this:
DLEY-7R4LHH.
I know the format is first based on username/servername and the second part is based on time. But I really don’t care about that as long is it’s a unique value.
In XPages if I try to set the default value of a field to the JavaScript implementation of @Unique(), I get back a value, but in a vastly different format.
Another running of this produces this:
Does anyone know what this value is? It looks more random then unique. Can I expect it to be unique? Is there a way to keep the format of “Traditional” Notes @Unique for consistency? Or is this new value more robust?
I know I can get the Traditional value if I tell the XPage to ComputewithForm, but I’m trying to avoid that if possible to I can keep as much of the logic as possible in one place.