Forum Discussion
Yep it's unique - and I've used it to create a connected table with that sortfield as the unique key (with the record ID of the original record in Table A in there too). Both are numerics.
Feels like I'm heading in the right direction with this but my brain just can't figure out where to go next with this!
D
------------------------------
dmlaycock2000 dmlaycock2000
------------------------------
Then you would have a relationship back to your real table based on that sort field and you would be able to coax the Record ID from your real table up into the Copy table.
The records and the Copy table will be sequential. So you can have a relationship of the Copy table to itself to look up the previous or next record ID and then get the record ID from your main table of the previous and next records into the Copy table.
Then lookup those Record ID values back down to the main table.
------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
mark.shnier@gmail.com
------------------------------
- SystemAdmin45 years agoQrew Member
Hi Mark,
Thanks for the nudge.
Managed to implement a solution based upon your recommendation.
Pipelines took a lot of getting used to (i hadn't used it before) and nearly ended up resorting to Zapier, but perseverance paid off.
I'm running the refresh daily (which should suffice). I've found that the copy table does need to be purged before each import, and I've had to set up the import as an import CSV from a CSV report with the records sorted in the order I need, to make sure they always end up in the copy table in the correct order, with sequential record IDs and no gaps.
As you say, once this was in place, it was relatively straight forward:
- Create a Record ID+1 and Record ID-1 field in the copy table
- Relate my original table to my copy using the Table A record ID (which I included in the import)
- Pull the RID+1 and -1 down to the original record, then relate these back to the copy, to allow me to get the Table A Record IDs for the previous and next record.
- I also pulled in a few other fields into the original import which mean I don't need to create further relationships to get other info via the Table A Record IDs.
All works fine in the end - not 100% live, but a daily refresh will be more than sufficient.Thanks for your help with this Mark.
David
------------------------------
dmlaycock2000 dmlaycock2000
------------------------------- MarkShnier__You5 years ago
Qrew Legend
Glad to hear you got it working.
I would guess you needed to use a pipeline to call an API to do the purge
------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
mark.shnier@gmail.com
------------------------------
- SystemAdmin45 years agoQrew MemberYep
I call API_PurgeRecords using a simple webhook HTTP Get request.
D
------------------------------
dmlaycock2000 dmlaycock2000
------------------------------