Requires Free Membership to View
Register today to access targeted resources from our editorial writers and independent industry experts focused on Lotus Domino, Notes, Workplace and other related technologies.
For example, if your data was in three fields, each of which had multiple values and were valued from the collection, you could write some code like:
finalHtml := finalHTML + "tr.odd {background-color:CornflowerBlue}";
finalHtml := finalHTML + "tr.even {background-color:Lavender}";
finalHtml := finalHTML + "</style>";
finalHtml := finalHTML + "<TABLE>";
n := 1;
@While(n <= @Elements(vCol1);
@If(@Modulo(n;2) > 0;
finalHtml := finalHtml + "<tr class="odd"><td width="100"
border="0">" + vCol1[n] + "</td><td width="100" border="0
">" + vCol2[n] + "</td><td width = "300" border="0">"
+ vCol3[n] + "</td>";
finalHtml := finalHtml + "<tr class="even"><td width="100"
border="0">" + vCol1[n] + "</td><td width="100" border="0
">" + vCol2[n] + "</td><td width = "300" border="0">"
+ vCol3[n] + "</td>");
n := n + 1);
finalHtml := finalHtml + "</TABLE>";
finalHtml
Thus you can create a dynamic table containing the data you want. This was first published in July 2003