In ND6, is it possible to create a view 'on the fly' using a document collection?

In ND6, is it possible to create a view 'on the fly' using a document collection?

In ND6, is it possible to create a view "on the fly" using a document collection? We are trying to present a group of documents to a user using a view we present in the client (based on a previously created view), but not save the view on the server or in the local machine. Is this possible?

    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.

    By submitting your registration information to SearchDomino.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchDomino.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

You can't do exactly that in 6, but I believe you can accomplish the same thing with some of our other new features in 6. With the new formula language looping feature (@While) and with the formula's new ability to reference array elements, combined with the ability to render pass-through HTML in the client, you can dynamically construct a pass-thru HTML table with the data from the collection. You would assemble the strings programmatically through formula language -- the formula language would be attached to computed text that has the pass-thru HTML attribute set.

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