Forum Discussion
QuickBaseCoachD
7 years agoQrew Captain
You do not need to concatenate the actual file attachments, you need to concatenate a link to each file attachment.
Here is the syntax to make a link to display a file attachment. Get it working on the parent table and then use it in any List (...) formuals or lookups
URLRoot() & "up/" & dbid() & "/a/r" & [Record ID#] & "/e30/v0"
Replace the 30 with the fid of the field holding the file attachment and you are all set.
Here is the syntax to make a link to display a file attachment. Get it working on the parent table and then use it in any List (...) formuals or lookups
URLRoot() & "up/" & dbid() & "/a/r" & [Record ID#] & "/e30/v0"
Replace the 30 with the fid of the field holding the file attachment and you are all set.
- QuickBaseCoachD7 years agoQrew CaptainActually, I think it needs a slightly different syntax if you were going to list them together. I will post back to this forum in the next hour or two. In the car right now.
- QuickBaseCoachD7 years agoQrew CaptainNot tested but I think that the syntax will need to look like this. It will be a formula Rich Text field Type - not a formula URL
var text Words = ToText([File Attachment 1 field]);
var text URL = URLRoot() & "up/" & dbid() & "/a/r" & [Record ID#] & "/e30/v0";
"<a href=" & $URL & ">" & $Words & "</a>"
if you make one of those for each file attachment field, then you should be able to use a List statement in a formula Rich text field to list them.
List("<br>",
[Link 1],
[Link 2],
[Link 3],
[Link 4])
Post back if you have any problems. - ASullivanFFRASu7 years agoQrew TraineeI am missing something, I am sure:
var text Words = ToText([FFSP Top 5 Cover Sheet]);
var text URL = URLRoot() & "up/" & dbid(_DBID_PUBLICATION_TRACKING) & "/a/r" & [Publication Submission#] & "/e30/v0";
"<a href=" & $URL & ">" & $Words & "</a>"
var text Words = ToText([Publication Submission: Fleet & Family Support]);
var text URL = URLRoot() & "up/" & dbid(_DBID_PUBLICATION_TRACKING) & "/a/r" & [Publication Submission#] & "/e30/v0";
"<a href=" & $URL & ">" & $Words & "</a>"
var text Words = ToText([CYP Top 5 Cover Sheet]);
var text URL = URLRoot() & "up/" & dbid(_DBID_PUBLICATION_TRACKING) & "/a/r" & [Publication Submission#] & "/e30/v0";
"<a href=" & $URL & ">" & $Words & "</a>"
var text Words = ToText([Publication Submission: Child & Youth]);
var text URL = URLRoot() & "up/" & dbid(_DBID_PUBLICATION_TRACKING) & "/a/r" & [Publication Submission#] & "/e30/v0";
"<a href=" & $URL & ">" & $Words & "</a>"
var text Words = ToText([Housing, Lodging, Navy Getaways Top 5 Cover Sheet]);
var text URL = URLRoot() & "up/" & dbid(_DBID_PUBLICATION_TRACKING) & "/a/r" & [Publication Submission#] & "/e30/v0";
"<a href=" & $URL & ">" & $Words & "</a>"
var text Words = ToText([Publication Submission: Housing, Lodging & Navy Getaways]);
var text URL = URLRoot() & "up/" & dbid(_DBID_PUBLICATION_TRACKING) & "/a/r" & [Publication Submission#] & "/e30/v0";
"<a href=" & $URL & ">" & $Words & "</a>"
var text Words = ToText([SFA Top 5 Cover Sheet]);
var text URL = URLRoot() & "up/" & dbid(_DBID_PUBLICATION_TRACKING) & "/a/r" & [Publication Submission#] & "/e30/v0";
"<a href=" & $URL & ">" & $Words & "</a>"
var text Words = ToText([Publication Submission: Sports, Fitness & Aquatics]);
var text URL = URLRoot() & "up/" & dbid(_DBID_PUBLICATION_TRACKING) & "/a/r" & [Publication Submission#] & "/e30/v0";
"<a href=" & $URL & ">" & $Words & "</a>"
var text Words = ToText([REC Top 5 Cover Sheet]);
var text URL = URLRoot() & "up/" & dbid(_DBID_PUBLICATION_TRACKING) & "/a/r" & [Publication Submission#] & "/e30/v0";
"<a href=" & $URL & ">" & $Words & "</a>"
var text Words = ToText([Publication Submission: Recreation Programs]);
var text URL = URLRoot() & "up/" & dbid(_DBID_PUBLICATION_TRACKING) & "/a/r" & [Publication Submission#] & "/e30/v0";
"<a href=" & $URL & ">" & $Words & "</a>"
var text Words = ToText([LIB Top 5 Cover Sheet]);
var text URL = URLRoot() & "up/" & dbid(_DBID_PUBLICATION_TRACKING) & "/a/r" & [Publication Submission#] & "/e30/v0";
"<a href=" & $URL & ">" & $Words & "</a>"
var text Words = ToText([Publication Submission: LIBERTY Programs]);
var text URL = URLRoot() & "up/" & dbid(_DBID_PUBLICATION_TRACKING) & "/a/r" & [Publication Submission#] & "/e30/v0";
"<a href=" & $URL & ">" & $Words & "</a>"
var text Words = ToText([FBE Top 5 Cover Sheet]);
var text URL = URLRoot() & "up/" & dbid(_DBID_PUBLICATION_TRACKING) & "/a/r" & [Publication Submission#] & "/e30/v0";
"<a href=" & $URL & ">" & $Words & "</a>"
var text Words = ToText([Publication Submission: Entertainment & Dining]);
var text URL = URLRoot() & "up/" & dbid(_DBID_PUBLICATION_TRACKING) & "/a/r" & [Publication Submission#] & "/e30/v0";
"<a href=" & $URL & ">" & $Words & "</a>"
List(", ",
[FFSP Top 5 Cover Sheet], [Publication Submission: Fleet & Family Support], [CYP Top 5 Cover Sheet], [Publication Submission: Child & Youth], [Housing, Lodging, Navy Getaways Top 5 Cover Sheet], [Publication Submission: Housing, Lodging & Navy Getaways], [SFA Top 5 Cover Sheet], [Publication Submission: Sports, Fitness & Aquatics], [REC Top 5 Cover Sheet], [Publication Submission: Recreation Programs], [LIB Top 5 Cover Sheet], [Publication Submission: LIBERTY Programs], [FBE Top 5 Cover Sheet], [Publication Submission: Entertainment & Dining]) - ASullivanFFRASu7 years agoQrew TraineeSorry, *without* the dbid(_DBID_Publication_Tracking)
Error says there are extra characters beyond the formula:
var text Words = ToText([FFSP Top 5 Cover Sheet]);
var text URL = URLRoot() & "up/" & dbid() & "/a/r" & [Publication Submission#] & "/e30/v0";
"<a href=" & $URL & ">" & $Words & "</a>"
var text Words = ToText([Publication Submission: Fleet & Family Support]);
var text URL = URLRoot() & "up/" & dbid() & "/a/r" & [Publication Submission#] & "/e30/v0";
"<a href=" & $URL & ">" & $Words & "</a>"
var text Words = ToText([CYP Top 5 Cover Sheet]);
var text URL = URLRoot() & "up/" & dbid() & "/a/r" & [Publication Submission#] & "/e30/v0";
"<a href=" & $URL & ">" & $Words & "</a>"
var text Words = ToText([Publication Submission: Child & Youth]);
var text URL = URLRoot() & "up/" & dbid() & "/a/r" & [Publication Submission#] & "/e30/v0";
"<a href=" & $URL & ">" & $Words & "</a>"
var text Words = ToText([Housing, Lodging, Navy Getaways Top 5 Cover Sheet]);
var text URL = URLRoot() & "up/" & dbid() & "/a/r" & [Publication Submission#] & "/e30/v0";
"<a href=" & $URL & ">" & $Words & "</a>"
var text Words = ToText([Publication Submission: Housing, Lodging & Navy Getaways]);
var text URL = URLRoot() & "up/" & dbid() & "/a/r" & [Publication Submission#] & "/e30/v0";
"<a href=" & $URL & ">" & $Words & "</a>"
var text Words = ToText([SFA Top 5 Cover Sheet]);
var text URL = URLRoot() & "up/" & dbid() & "/a/r" & [Publication Submission#] & "/e30/v0";
"<a href=" & $URL & ">" & $Words & "</a>"
var text Words = ToText([Publication Submission: Sports, Fitness & Aquatics]);
var text URL = URLRoot() & "up/" & dbid() & "/a/r" & [Publication Submission#] & "/e30/v0";
"<a href=" & $URL & ">" & $Words & "</a>"
var text Words = ToText([REC Top 5 Cover Sheet]);
var text URL = URLRoot() & "up/" & dbid() & "/a/r" & [Publication Submission#] & "/e30/v0";
"<a href=" & $URL & ">" & $Words & "</a>"
var text Words = ToText([Publication Submission: Recreation Programs]);
var text URL = URLRoot() & "up/" & dbid() & "/a/r" & [Publication Submission#] & "/e30/v0";
"<a href=" & $URL & ">" & $Words & "</a>"
var text Words = ToText([LIB Top 5 Cover Sheet]);
var text URL = URLRoot() & "up/" & dbid() & "/a/r" & [Publication Submission#] & "/e30/v0";
"<a href=" & $URL & ">" & $Words & "</a>"
var text Words = ToText([Publication Submission: LIBERTY Programs]);
var text URL = URLRoot() & "up/" & dbid() & "/a/r" & [Publication Submission#] & "/e30/v0";
"<a href=" & $URL & ">" & $Words & "</a>"
var text Words = ToText([FBE Top 5 Cover Sheet]);
var text URL = URLRoot() & "up/" & dbid() & "/a/r" & [Publication Submission#] & "/e30/v0";
"<a href=" & $URL & ">" & $Words & "</a>"
var text Words = ToText([Publication Submission: Entertainment & Dining]);
var text URL = URLRoot() & "up/" & dbid() & "/a/r" & [Publication Submission#] & "/e30/v0";
"<a href=" & $URL & ">" & $Words & "</a>"
List(", ",
[FFSP Top 5 Cover Sheet], [Publication Submission: Fleet & Family Support], [CYP Top 5 Cover Sheet], [Publication Submission: Child & Youth], [Housing, Lodging, Navy Getaways Top 5 Cover Sheet], [Publication Submission: Housing, Lodging & Navy Getaways], [SFA Top 5 Cover Sheet], [Publication Submission: Sports, Fitness & Aquatics], [REC Top 5 Cover Sheet], [Publication Submission: Recreation Programs], [LIB Top 5 Cover Sheet], [Publication Submission: LIBERTY Programs], [FBE Top 5 Cover Sheet], [Publication Submission: Entertainment & Dining]) - QuickBaseCoachD7 years agoQrew CaptainLet's get just a smaller link working before you got crazy with 10 links. This formula would be in the Parent record.
You need to change the 99 in the example below to the respective field ID's where the file attachments are stored.
var text WordsONE = ToText([FFSP Top 5 Cover Sheet]);
var text URLONE = URLRoot() & "up/" & dbid() & "/a/r" & [Publication Submission#] & "/e99/v0";
var text LinkOne = "<a href=" & $URLONE & ">" & $WordsONE & "</a>";
var text WordsTWO = ToText([Publication Submission: Fleet & Family Support]);
var text URLTWO = URLRoot() & "up/" & dbid() & "/a/r" & [Publication Submission#] & "/e99/v0";
var text LinkTWO = "<a href=" & $URLTWO & ">" & $WordsTWO & "</a>";
List("<br>", $LinkONE, $LinkTWO)- SherylMacGibbon2 years agoQrew Member
Hi,
From above,
List("<br>", $LinkONE, $LinkTWO)
How do you have the list not show blanks?
Thank you!
------------------------------
Sheryl MacGibbon
------------------------------- ChayceDuncan2 years agoQrew Captain
The List formula won't account for blanks - you would have to change the method to potentially do an ordered list HTML element, or you could just check if it's blank with an if statement like so:
If( $linkOne != "", $linkOne & "<br>", "") &
if( $linkTwo != "", $linkTwo & "<br>","")
...
So on and so on
------------------------------
Chayce Duncan
------------------------------
- ASullivanFFRASu7 years agoQrew TraineeThat worked! Thank you!
- QuickBaseCoachD7 years agoQrew CaptainThx for letting me know that we got there. :)