Machine UUID (was Re: Creating a unique number / ID in Omnis Studio_

Mike Matthews - Omnis omnis at lineal.co.uk
Thu Mar 23 07:30:31 UTC 2023


Thanks Kelly! :)

Mike Matthews

Lineal Software Solutions
Commercial House, The Strand<x-apple-data-detectors://1/1> Barnstaple, Devon, EX31 1EU<x-apple-data-detectors://1/1>

omnis at lineal.co.uk<mailto:mike.matthews at lineal.co.uk>

www.lineal.co.uk<http://www.lineal.co.uk/>

www.sqlworks.co.uk<http://www.sqlworks.co/>



On 23 Mar 2023, at 00:03, Kelly Burgess <kellyb at montana.com<mailto:kellyb at montana.com>> wrote:

Caution: This is a message which has originated from outside the organisation. Ensure the sender is trusted and the content is safe before opening links or attachments.



Hi Mike,

Apparently the format of the OW3.$gethardwareid() I am using is not good enough ..


Submit a UUID which is 128 bits or 32 hex characters long

# Gov-Client-Device-ID: beec798b-b366-47fa-b1f8-92cede14a1ce

# Omnis version : 69CW-EQK5-B92I-YYY5-69CD-7MK5-BY2Q-7XKZ

So how do you convert the OW3 result into either a 128 bits or 32 hex characters long string?


This will give you a 32-character hex string based on the machine ID.

       Calculate uuid as OXML.$md5hexdigest(OW3.$gethardwareid())

Kelly
_____________________________________________________________
Manage your list subscriptions at https://linkprotect.cudasvc.com/url?a=https%3a%2f%2flists.omnis-dev.com&c=E,1,27EsQwwmA84rIJVVe3dP69ZiAsrUyWybLjY7Ua11hrqNgVef2fS8w9isVkhRtcti-BM7UrteKdCNmT4qQ8iT029nMH5rX4-hbnxPkmHatfs,&typo=1
Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com



More information about the omnisdev-en mailing list