Hyperlink in Table

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

Kaprice
Ebase User
Posts: 12
Joined: Sat Apr 04, 2015 3:43 pm
Contact:

Hyperlink in Table

#1

Postby Kaprice » Mon Jul 27, 2015 8:04 pm

I have a table on a page. For each row in the table, there is a PDF stored on the server.

I want to add a column to the table that is a hyperlink to the corresponding PDF.

Any suggestions?
0 x
Kap

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#2

Postby Jon » Tue Jul 28, 2015 3:18 pm

How about this, should display the PDF in a popup:

1. Add a column to the table containing the URL of the corresponding PDF - don't display this column.
2. Add an image column to the table to give the user something to click in order to display the PDF. This could also be a button or a hyperlink.
3. Then on the server display the PDF when the image is clicked, something like this:

Code: Select all

form.displayUrl(tables.MYTAB.PDF_URL.value);
0 x


Who is online

Users browsing this forum: No registered users and 18 guests