Detail section

Detail section is everything located between <!--WB_BeginDetail--> and <!--WB_EndDetail--> comments. When WBSP start processing the detail section, it moves the recrdset to the record defined in WB_StartRec variable, processes all tags and functions found in detail section, sends the resulting content to the client, moves the recordset to the next record and repeat the process for every record in record range (starting with record number WB_StartRec and ending with record number WB_StartRec + WB_MaxRec ). It means that detail section will be repeated as many times as there is records in the range. It is very important to place <!--WB_BeginDetail--> and <!--WB_EndDetail--> comments properly, because misplacing them can produce unwanted results.

Here's an example:
 

<!--
[FormFields]
WB_basename=biblio.mdb
wb_rcdset=titles
wb_command=Q
-->
<!--WB_BeginTemplate-->
<html>
<head>
<title>Titles</title>
</head>
<body>
<table border="1" cellspacing="0">
<tr>
<td>Year published</td>
<td>Title</td>
<td>ISBN</td>
</tr>
<!--WB_BeginDetail-->
<tr>
<td>$wbf[Year published]</td>
<td>$wbf[title]</td>
<td>$wbf[ISBN]</td>
</tr>
<!--WB_EndDetail-->
</table>
<center>$wbnavigator</center>
</body>
</html>

When processed this WBSP page will produce a table with 3 columns and 20 rows containing filed values for Year published, Title and ISBN fields from table Titles.

However, if we misplace the <!--WB_BeginDetail--> and <!--WB_EndDetail--> comments  by putting hem inside the <tr> </tr> structure, like this:
<!--
[FormFields]
WB_basename=biblio.mdb
wb_rcdset=titles
wb_command=Q
-->
<!--WB_BeginTemplate-->
<html>
<head>
<title>Titles</title>
</head>
<body>
<table border="1" cellspacing="0">
<tr>
<td>Year published</td>
<td>Title</td>
<td>ISBN</td>
</tr>
<tr>
<!--WB_BeginDetail-->
<td>$wbf[Year published]</td>
<td>$wbf[title]</td>
<td>$wbf[ISBN]</td>
<!--WB_EndDetail-->
</tr>
</table>
<center>$wbnavigator</center>
</body>
</html>

we'll get a two rows table with 3 columns in first row and 60 columns in second row (3 columns for every record displayed).