Wednesday, September 22, 2010

Detail section

Detail section is everything located between and 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 and comments properly, because misplacing them can produce unwanted results.
Here's an example:




Titles


Year published Title ISBN
$wbf[Year published] $wbf[title] $wbf[ISBN]

$WBNavigator


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 and comments by putting them inside the structure, like this:




Titles


Year published Title ISBN
$wbf[Year published] $wbf[title] $wbf[ISBN]

$WBNavigator


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).

read more

No comments:

Post a Comment