SAFE X3 engine has introduced a new data type called UUID. UUID is an acronym for Universally Unique IDentifier. The aim of UUIDs is to allow unique identifiers to be assigned without conflict in distributed systems.A UUID is stored in 128 bits (16 bytes). A canonical printable form represents them as 32 hexadecimal digits, displayed in five groups separated by hyphens. The format is 8-4-4-4-12 which makes 36 characters including 32 digits and 4 hyphens.There are approximately 3*10^38 possible UUIDs. All the operating systems provide a function to generate UUIDs. The algorithm usually combines the current time, a unique number assigned to the computer and a random number. The generation algorithm makes it unique in the whole digital universe, (or at least unique with a probability less than 10 power minus 88).
New Stuff: Link tables in Sage ERP X3 through coding.
The SAFE X3 engine includes a set of instructions and functions to support UUIDs:
Uuident to declare a UUID variable.
Nulluuid to manage a null (not assigned) UUID.
Touuid to transform a canonical form to a UUID.
Getuuid to generate a UUID.
By default, a UUID column is now present on every Sage ERP X3 table.
When grids are managed by Sage ERP X3, client lines are identified by UUIDs. This makes it very easy to identify array lines in insertion, deletion and sort operations.
Thus it identifies a unique piece of data and is used by Sage ERP X3 engine, classes and the Web client for all the exchanges with the engine in order to make a clear distinction between new and modified information.
In the Sage ERP X3 tables managed by the Web technology, the name of the column storing the UUID is AUUID.
Kindly refer below snippet of code to generate UUID.
Also Read:
1.Opening Sage ERP X3 system tables…!
2.Checking the Type of variable
3. Global Variables in X3
4. Checking the Existence of variable
5.Auditing Tables in Sage ERP X3