Can you use a URL field to add a link to a shared file on a network?

  • 0
  • 1
  • Question
  • Updated 10 months ago
  • Answered
Photo of Shontay

Shontay

  • 490 Points 250 badge 2x thumb

Posted 1 year ago

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

QuickBaseCoach App Dev./Training, Champion

  • 51,546 Points 50k badge 2x thumb
Here are my last notes in this topic.

hyperlink or URL field that opens a file on my internal network


How do I create a hyperlink or URL field that opens a file on my internal network?

QuickBase lets you create URL fields that link to any location you want. You can link to any file on the Web or to a file on your organization's internal (local) network. You link to a local file using one of two field types: 

* Regular URL field. If paths to each document will be very different, create a regular URL field that will be completed by users as they add each record.
 
* Formula - URL field. If the path to the server will remain the same and only the name of the file changes with each record, create a Formula - URL field. When you do so, QuickBase generates the URL automatically based on the file name a user enters. 

NOTE: Links to local files work only in Internet Explorer. These links do NOT work in Firefox due to a security setting.


To link from a regular URL field:

Create a URL type field (to learn how, read: https://www.quickbase.com/help/adding_a_field.html) and add it to your table's form(s). Whenever you add or edit a record, type the path to the document in the URL field.

For example, say the path to your document is: 

\\ny01\marketing\docs\pamphlet.pdf 

Just enter that exact path in the URL field and click Save. When the record's in display mode, that path appears as a link. QuickBase automatically prepends the word "file:" to the URL, which designates the hyperlink as one that opens a destination file on the local network.


To link from a Formula - URL field:

If you store all your documents in the same place, you can save your users some work by using a Formula - URL field instead of a regular URL field. You enter the full folder (or directory) path in the field's properties and then ask your users to enter only the document name. QuickBase will put it all together and generate a proper hyperlink.

First, create a field to hold the file names and add it to your form(s). This can be a text type field. You and your users will use this field to enter the full name of the file you want to link to. When you enter the file name, you must include the file extension (.pdf, .doc, .html and so on) within the name in order for the URL to be complete.

Next, create a Formula - URL type field. After you create the field, click its name to open its properties page. Within the formula box, enter the formula that tells QuickBase how to compose the URL to link to local files. 

For example, say the path to the folder containing your documents is:

\\ny01\marketing\docs\

and users will enter filenames in a field called "File Name"

Your formula should look like this:

"file:\\\\ny01\\marketing\\docs\\" & [File Name]

This formula tells QuickBase to take the text that appears between the double quotes (the start of your URL) and add whatever text appears in the File Name field to the end. But, where did those extra backslashes come from? The backslash is a special character in the QuickBase formula language. It tells QuickBase that the character following the backslash should be taken for its true value and not its value in the QuickBase formula language. For example, say you wanted your formula text field to actually include a double-quote character (which, in the formula language delimits the text of a literal). To do so, you'd precede it with a backslash, as in:  "The \" character is special." So, for each backslash that you want to actually appear in your URL, you must precede it with another backslash. In other words, double the backslashes--for each single backslash, type two.
Save changes to the field and test it. When you add a record, enter the file name and save. QuickBase then generates a URL that links to that file on your local network.


Read more about:

Creating fields: https://www.quickbase.com/help/adding_a_field.html 
QuickBase Formulas: https://www.quickbase.com/help/using_formulas_in_quickbase.html 
Photo of Shontay

Shontay

  • 490 Points 250 badge 2x thumb
I created a URL field and added \\cwwappsdir001.windstream.com\shared\ipack\_BroadbandEng\JobTrac 702162083\Design&IPacks.  When I click on the link nothing happens.  
Photo of QuickBaseCoach App Dev./Training

QuickBaseCoach App Dev./Training, Champion

  • 51,546 Points 50k badge 2x thumb
All I really know is what I pasted in that link.  Are you using IE?  probably not.  I'm not sure what you need to do to get it to work on other Browsers.
Photo of Wes Webb

Wes Webb

  • 130 Points 100 badge 2x thumb
Does this work in Chrome?
Just an FYI -
with the Chrome extension "Enable local file links", we can now link QuickBase to local files on our server
- works while in the office, but of course not outside 
- unless I use TeamViewer to access my office PC, it works also




Inline image 1