By: Eduardo Ponce de Leon
2020-04-27


KAS Documentation / KAS Documentation /

How to add a link in a Table View: External Link Table View

By: Eduardo Ponce de Leon
2020-04-27

How to add a link in a Table View: External Link Table View
Table Views can display information from the database, but can also display other information like links to external pages, and these links can be built using values from the data base.

For this feature, no option type is required,

In the table View page add a column for your link. For example an external PDF, in this case 200 is a with of 200px

array_push($td_titles, "200-PDF");

Then add a field with the name link, followed by the URL, inside the URL you can add names of columns from the database as wild cards that will be raplaced with the value from the database for that specific row. Then add the text that will be displayed in the link, in this case OPEN APPLICATION

array_push($td_fields,"link:/ajax/invoice.php?IID=%IID%&CLID=%CLID%:OPEN APPLICATION");

 

 

Comments