Hi, on my HTML page i've got a table. It's populated with enquiry number, name and address, unhiding a row for each record that exists with my criteria.
I may need to have 50 rows in each of the 4 tables i'm creating, so i'm wondering what the most efficient way to do this is?
I'd rather not have to define 50 hidden styles, 50 if statements and have 50 rows to manage
Here's my current code:
- hidden1 = "class=\"hidden\"";
- hidden2 = "class=\"hidden\"";
- hidden3 = "class=\"hidden\"";
- hidden4 = "class=\"hidden\"";
- counter = 0;
- for each rec in Form[EnquiryNum != null]
- {
- counter = counter + 1;
- if(counter = 1)
- {
- row1=rec.EnquiryNum;
- hidden1="";
- }
- if(counter = 2)
- {
- row2=rec.EnquiryNum;
- hidden2="";
- }
- if(counter = 3)
- {
- row3=rec.EnquiryNum;
- hidden3="";
- }
- if(counter = 4)
- {
- row4=rec.EnquiryNum;
- hidden4="";
- }}