Re: multi user increment
Re: multi user increment
- Subject: Re: multi user increment
- From: Helge Staedtler <email@hidden>
- Date: Mon, 06 Feb 2006 16:08:23 +0100
hi Gino,
hmm, I would have a look at the primary keys.
those are ensured by EOF and the DB to be unique, so any number which is
derived from the primarykey (you might e.g. transform an alphanumeric PK
into a pure number key) should meet your criteria.
you could use e.g. EOUtilities.primaryKeyForObject() as Art Isbell already
wrote in one of the latest postings "How to use WOPopupButton".
take into account, that primary keys might change if you migrate with your
project to another database or database vendor!
regards,
helge
Am 06.02.2006 15:27 Uhr schrieb "Gino Pacitti" unter <email@hidden>:
> Hi All
>
> Any thoughts on how to address this problem
>
> I have a multi instance app that connects to a single data store.
>
> For any user, across the instances, I need to increment a numerical
> value newly for each new registered user.
>
> This then has to be saved back to the data store and for there to be
> no conflicts with similar values for new registrants...
>
> Any ideas or have I missed something easy here..
>
> Gino
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
--
Momo was there and joined in, that was all, but for some reason her mere
presence put bright ideas into their heads. -- from Michael Ende's "Momo"
Expect and Respect.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden