Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to create dynamic columns and rows with dynamic values  RSS feed

 
rachanaa jain
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI,
I am having 2 tables in my database.I want to display contains of 1st table as a first row of grid and contains of 2nd table as first column of that grid.Data in that grid will come after the comparison of data of both the tables.

example is like this:I want to display like this:

Severity \Probability Frequent Probable Occasional Remote

Catastrophic 2 1 3 4
Critical 1 1 3 3


here severity is for first column that data will come from severity table.and probability is for first row that data(like:frequent,probable) will come from probability table.

please help.
thanks in advance.
 
Saurabh Agarwal
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
tables could be generated dynamically by using scriplets inside HTML

<Table>
<% for (int i=0;i++;i<10) {%>
<tr>
<td>(access data dynamically within another scriplet)</td>
</tr>
<%}%>
</table>

this will create 10 rows table with 1 column...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!