Hi All,
I have the following piece of code inside my JSP.
<tr> <td colspan="2"> <TABLE BORDER=2> for ( int i = 0; i < MyDashboard.ptSummary.length; i++ ) { %> <%<TR> <% if(MyDashboard.ptSummary[i].getID()!= "") {%> <TD><%= MyDashboard.ptSummary[i].getID() %></TD> <!-- **Want to convert this to a link**--><TD><%= MyDashboard.ptSummary[i].getDescription() %></TD> <%} %> </TR> <%}%></TABLE> </td> </tr>
This renders a table with two columns namely ProjectID and Project Description.These are obtained from the property ptSummary which is an array.
My aim is to convert the row entries under the Project ID column to links on whose click i could pass that particular id onto my Behaviour class.
Now i have come across an example involving dmf:link in the categorylist_thumbnail_body.jsp in the following code.
<dmf:link onclick='onClickObject' runatclient='true' datafield='object_name'>
<dmf:argument name='id' datafield='r_object_id'/>
<dmf:argument name='type' datafield='r_object_type'/>
<dmf:argument name='isFolder' datafield='isfolder'/>
</dmf:link>
My question is how can i utilize the example in categorylist_thumbnail_body.jsp. where the "datafield ='object_name' is utilized (probably from the database) to have my data coming from the java class and pass this as a parameter i.e. i need to pass <%= MyDashboard.ptSummary[i].getID() %> as a parameter when the user clicks on this link.
Looking forward for your help and support.
Thanks & Regards
Vishnu S