Can I link to a document hosted on another table within my app when creating new records on a table?

  • 0
  • 1
  • Question
  • Updated 3 years ago
  • Answered

I have an app I use for setting up system access for new employees that has several tables relating to employee records. There is a table of Documents that are templates to be used when creating records in other tables. I want to have a button when I am creating a new record in my Requests table that will pull up the specified template from my Documents table. The document would be the same one for all records on the table.

I have tried to make a file attachment field type, but that only lets me upload a new document with the record. And I was also looking at a formula URL field and have been tinkering with different ways to set up a table relationship, but have not been able to figure this out.

Photo of Mary

Mary

  • 0 Points

Posted 3 years ago

  • 0
  • 1
Photo of QuickBaseCoach App Dev./Training

QuickBaseCoach App Dev./Training, Champion

  • 65,280 Points 50k badge 2x thumb
You can make a Relationship where One Document has many Employee Records.  The first lookup would be the Document name (I assume that you have a description field on the documents table.  That will be your "reference proxy field".

The the formula text field to display a downloadable clickable link would be

URLRoot() & "up/" & [_DBID_DOCUMENTS] & "/a/r" & [Related Document] & "/e11/v0"




The e11 is the field ID when has the document attachment, so change the 11 to the FID of the field .  Obviously you will need to change [_DBID_DOCUMENTS] to the Table name of your own Documents table.