How to create a link for a column in list.jspx?
Hi,
I have a table with 2 columns: a report name and the report file to execute. I want to change the report name column (first column) so it becomes an hyperlink that has as part of its URL the 2nd column value, but I have not been able to make it work with the table:column tag. Well, I have not even been able to setup a static hyperlink...so yes, I have no idea how to customize the column tag.
Code:
<page:list id="pl_com_swroot_info3pl_model_Report" items="${reports}" z="YqjlCSimn/77CtvQ5OaovaAGMvU=">
<table:table data="${reports}" id="l_com_swroot_info3pl_model_Report" path="/reports" z="NrbS9wlfgjT4sPYdJ5hXfz87rM8=">
<table:column id="c_com_swroot_info3pl_model_Report_name" <table:column id="c_com_swroot_info3pl_model_Report_name" property="<a href="http://localhost:8080/reports/" + ReferenceTo_reportFileValue(3rd column)>name</a>" maxLength="35" z="user-managed"/> <table:column id="c_com_swroot_info3pl_model_Report_description" property="description" z="Ig8xj9JX2eTEIOKqH9P08gNTdYI="/>
<table:column id="c_com_swroot_info3pl_model_Report_reportFile" property="reportFile" z="/5rfs85yXk+c2tZH1hv/PtiBIzk="/>
</table:table>
</page:list>
Thanks for any suggestion.