In a Notes client application, it is easy to set the View property to alternate
the color of rows in a view. On the web, this property does not work. The
following tip does the same on the web.
This particular example ("PT1") displays the "LastName, FirstName" as a link to
that document. All other columns are displayed as plain text.
Remember to have the Opening "<TR>" tag in the first column, and the Closing
"</TR>" tag inthe last column.
Add "PT1" to your first column formula.
Add "PT3" to your last column formula.
Add "PT2" to any column formula in between.
REM "PT1";
myname:=@ProperCase(LastName+", "+FirstName);
UNID:=@Text(@DocumentUniqueID);
"<script language=javascript> document.write(\'<TR BGColor=\' + (" +
@DocNumber
+ " % 2 ? \'ffffca\' : \'ffffff\') + \'><TD valign=top>\');
</Script><Font
Face=Arial size=2><a
href=../database.nsf/view/"+UNID+"?OpenDocument>"+myname+"</a></Font></td>"
=================================================
REM "PT2"
"<script language=javascript> document.write(\'<BGColor=\' + (" + @DocNumber
+
" % 2 ? \'ffffca\' : \'ffffff\') + \'><TD valign=top>\');
</Script><Font
Face=Arial size=2>"+viewable_value_or_field_here+"</Font></td>"
=================================================
REM "PT3"
"<script language=javascript> document.write(\'<BGColor=\' + (" + @DocNumber
+
" % 2 ? \'ffffca\' : \'ffffff\') + \'><TD valign=top>\');
</Script><Font
Face=Arial
size=2>"+viewable_value_or_field_here+"</Font></td></tr>"
This was first published in November 2000