XFA Specification
Chapter 23, FormCalc Specification
String Built-in Functions
890
Uuid()
This function returns a Universally Unique Identifier (UUID) string which is guaranteed (or at least
extremely likely) to be different from all other UUIDs generated until the year 3400 A.D.
Syntax
Uuid([n1])
Parameters
n1
identifies the format of UUID string requested:
- if the value is 0, the returned UUID string will only contain hex octets.
- if the value is 1, the returned UUID string will contain dash characters separating the sequences of hex
octets, at fixed positions.
If n1 is omitted, the default value of 0 will be used.
Returns
The string representation of a UUID, which is an optionally dash-separated sequence of 16 hex octets.
Bugs
When used in in the XML Forms Plugin environment, the current implementation of this function does not
return anything useful.
Examples
Uuid()
returns "3c3400001037be8996c400a0c9c86dd5" on some system at some point in time.
Uuid(1)
returns "1a3ac000-3dde-f352-96c4-00a0c9c86dd5" on that same system at some other point in time.