Creating a unique number / ID in Omnis Studio

Michael Mantkowski michaelj at clientrax.com
Fri Nov 18 13:57:46 UTC 2022


Hi Nick,

Do you have the option of saving the highest number ID and just adding one
to it for each line you add to the list?  Requires you to store this number
so that it can be read and updated by multiple users.

*********************************************************************
Michael Mantkowski
ClienTrax Software
1-614-875-2245
*********************************************************************


-----Original Message-----
From: omnisdev-en On Behalf Of Nick Renders
Sent: Friday, November 18, 2022 8:39 AM
To: OmnisDev List - English <omnisdev-en at lists.omnis-dev.com>
Subject: Creating a unique number / ID in Omnis Studio

Hi List,

I was wondering if anyone had any good tips when it comes to creating unique
numbers or IDs in Omnis?
For instance, to identify a specific row in a List variable whose number of
lines is constantly changing (with $addbefore, $addafter, and $remove).

I have been using #CT (number of ticks) but technology has caught up, and
now there are situations with duplicate values because the calculations are
done in the same 1/60th of a second.

Any suggestions?

Thanks,

Nick Renders
_____________________________________________________________
Manage your list subscriptions at https://lists.omnis-dev.com Start a new
message -> mailto:omnisdev-en at lists.omnis-dev.com 



More information about the omnisdev-en mailing list