Hi, I would like to render a link to a stored file on a datapage tabular report. The file is not directly in the data source of the page so I need to get it using a SELECT query...
SELECT form FROM ns_tbl_client_forms WHERE client_fk = target.[@field:ce_tbl_Client_client_id] AND form_type_fk = '1HXYQIHS'
'form' is the name of the field where the file is stored.
The above query correctly returns the name of the file, example 'testfile.txt'
I do not know how to get from this to a correct link.
I notice that the links in other parts of the app are formulated using an ID for the file such as...
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
BrianI
Hi, I would like to render a link to a stored file on a datapage tabular report. The file is not directly in the data source of the page so I need to get it using a SELECT query...
SELECT form FROM ns_tbl_client_forms WHERE client_fk = target.[@field:ce_tbl_Client_client_id] AND form_type_fk = '1HXYQIHS'
'form' is the name of the field where the file is stored.
The above query correctly returns the name of the file, example 'testfile.txt'
I do not know how to get from this to a correct link.
I notice that the links in other parts of the app are formulated using an ID for the file such as...
https://xxxxxxxx.caspio.com/dp/78f9d0000333fdfa577f4xxxxxxxfiles/3706886
I don't see how to get from the file name 'testfile.txt' to the ID '3706886'
Any pointers would be appreciated..
Thanks
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.