• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
custom record ID
#8
I don't think you can generate a cdbRecordID at will - although Mark will confirm.

I've had a similar scenario where i had existing primary/foreign keys in UUID format. I solved it by creating new foreign key for each record that corresponds to the correct cdbRecordID.
1. create columns for primary/foreign keys in all tables affected; these store your existing keys (while of course each record has the liveCloud derived cdbRecordID)
2. for each foreign key, i set up a function to return the cdbRecordID of the record that contains the correct primaryKey in the new primary key column
3. I then replace or store in a new column a new foreign key that corresponds
4. The final result is that all foreign keys now point to the correct cdbRecordID as primary key, and i no longer need the old primary/foreign keys.

hope that helps (or even makes sense!)
Stam
  Reply


Messages In This Thread
custom record ID - by philippecoenen - 09-10-2021, 02:14 PM
RE: custom record ID - by mark_talluto - 09-10-2021, 04:52 PM
RE: custom record ID - by philippecoenen - 09-11-2021, 07:27 AM
RE: custom record ID - by philippecoenen - 02-19-2022, 09:00 AM
RE: custom record ID - by mark_talluto - 09-12-2021, 08:20 PM
RE: custom record ID - by mark_talluto - 02-20-2022, 10:27 PM
RE: custom record ID - by philippecoenen - 02-23-2022, 10:26 AM
RE: custom record ID - by stamatis - 02-24-2022, 01:10 PM
RE: custom record ID - by philippecoenen - 02-25-2022, 10:21 AM
RE: custom record ID - by stamatis - 02-26-2022, 03:21 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)