I would like to increment the table row id by 1 each time I loop through my iterator to create my table. How do I do this?
Here is my table.
<TABLE border=1>
<TR>
<b>
<TH>Table Name</TH>
<TH>Description</TH>
</b>
</TR>
<p font-size=10>
<pr:iterator results="tableList" >
<TR id=???? onClick="highlightTR('#c9cc99','cc3333',this.id);">
<TD><pr:field name="table_nm"/></TD>
<TD><pr:field name="table_descv_txt"/></TD>
<TD>
<form method=get name=myform action="TableUpdate.jsp">
<input type=hidden name=tName value="<pr:field name="table_nm"/>">
<input type=hidden name=tDesc value="<pr:field name="table_descv_txt"/>">
<input type=hidden name=tNum value="<pr:field name="generic_table_num"/>">
</form>
</TD>
</TR>
</pr:iterator>
</TABLE>
I would like to get the value of tName, tDesc and tNum depending on the table row id.
Here is my table.
<TABLE border=1>
<TR>
<b>
<TH>Table Name</TH>
<TH>Description</TH>
</b>
</TR>
<p font-size=10>
<pr:iterator results="tableList" >
<TR id=???? onClick="highlightTR('#c9cc99','cc3333',this.id);">
<TD><pr:field name="table_nm"/></TD>
<TD><pr:field name="table_descv_txt"/></TD>
<TD>
<form method=get name=myform action="TableUpdate.jsp">
<input type=hidden name=tName value="<pr:field name="table_nm"/>">
<input type=hidden name=tDesc value="<pr:field name="table_descv_txt"/>">
<input type=hidden name=tNum value="<pr:field name="generic_table_num"/>">
</form>
</TD>
</TR>
</pr:iterator>
</TABLE>
I would like to get the value of tName, tDesc and tNum depending on the table row id.