Tap Forms – Organizer Database App for Mac, iPhone, and iPad › Forums › Using Tap Forms › Copy record link inop
October 5, 2019 at 9:17 PM #36973
When I copy the record link and paste it into another app and click on it it opens tapforms main menu. It doesn’t open the record.
Should it?October 6, 2019 at 12:05 AM #36974
Yes, it should open the record.
What platform are you doing this on? And what’s the other app?
Does it work if you paste in Safari?October 6, 2019 at 2:01 AM #36982
Alternatively if you’re comfortable with the macOS Terminal app,
open <tfurl>is another way of triggering the URL as well.October 6, 2019 at 8:09 PM #36985
IPadOS 13.1.2 or the latest greatest
It opens tap forms to the main menu of my documents.October 6, 2019 at 9:00 PM #36986
Works ok for me on iOS 13.1.2 on a iPhone via Safari and Shortcuts, I was playing with it today figuring something else out. I’ll check out an iPad a little later.
This might be a silly question, are you sure the form and record still exists on the document?October 7, 2019 at 5:52 AM #36992
Yes. I try different onesOctober 8, 2019 at 12:14 AM #37000
I haven’t been able to reproduce this on my iPad when I did a quick test copying the URL and then pasting into Safari, it returned me to the record reliably.
The only other thing I could think of is if you had multiple copies of the document with the same ID?
Not been much help on this one :SOctober 8, 2019 at 5:07 AM #37001
Well if I leave tapforms with the document displayed it does not make it past the document.
If I open it up to the forms then the copied link will make it to the record. See images
Attachments:You must be logged in to view attached files.October 8, 2019 at 5:10 AM #37004
When you tested this did you exit out of tapforms completely?
If I leave tapforms with the forms menu displayed it will open the form and go to the record.
But if tapforms is not yet open at all it only opens tf and displays the document menu.October 8, 2019 at 10:03 PM #37023
If I kill Tap Forms entirely I can reproduce what you see. First request does just load the document screen and the second request triggers the document to open and displays the record.October 9, 2019 at 12:18 AM #37026
This is hard to debug. If I run it in Xcode, the app is obviously running and it works perfect. When I kill the app and try accessing the URL, Tap Forms launches, but doesn’t open the document. The joys of programming :)October 9, 2019 at 1:04 AM #37027
Ok, I figured out why it’s not working when the app is launched. It’s because the code that registers for the
/record/viewURL format doesn’t get registered until the database documents list screen is loaded. And the code that processes the incoming URLs happens before that. So when you launch Tap Forms, that
/record/viewroute gets registered. Then when you call the URL, that route is already registered, so Tap Forms knows what to do. But when Tap Forms isn’t running yet, the route is not registered so Tap Forms doesn’t know how to handle that route.
I need to move the route registration earlier up the chain, to the application level and not the documents list level.October 9, 2019 at 1:37 AM #37028
Ok, I fixed it. :)October 9, 2019 at 6:32 AM #37030
You must be logged in to reply to this topic.