Loops
The Loop element will repeat the contained field parameters and fill them with a set of records from a data source. In this example, the Loop element is used to create a list of Employee Records.
<html> <head></head> <body> <TABLE border="1"> <TR> <TH><u>Employee Number</u></TH> <TH><u>Full Name</u></TH> </tr> <LOOP> <tr> <TD><FIELD NAME="employeenumber"></td> <TD><FIELD NAME="firstname"><FIELD NAME="lastname"></td> </TR> </LOOP> </TABLE> </body> </html>Note that the header row of the table is outside the "loop" and is not repeated. Only the fields within the "loop" are repeated.
Parent topic: Building Result Sets.
IBM Workplace Web Content Management - V5.1.0.1 -
Workplace Web Content Management is a trademark of the IBM Corporation in the United States, other countries, or both.
IBM is a trademark of the IBM Corporation in the United States, other countries, or both.