Extend Views With Linked Category Strings And Mouseover Statusline For Categories And Documents

Extend Views With Linked Category Strings And Mouseover Statusline For Categories And Documents

Before using this code replace all { and } by square brackets. Replace the
words "xcript" by "script"


Code is easy to use and interesting for developers who like to modify Notes
standard views without leaving the the scope of @functions.

Use the given codes in views in order to
1. generate the link-URL for the category-strings too and not only for the
twisties
2. use an individual JS-mouseover Statusline message
3. work with JavaScript disabled Browsers as ususal without further modification

Modifications to your needs are straight forward.

Put the following code in the approriate form $$ViewTemplate (resp.
$$ViewTemplateDefault if you don't use individual ViewTemplates). JS-Variable
DQ stands for DoubleQuote (") and SQ for for SingelQuote (') which are
generated by JS-function "unescape".

"<XCRIPT LANGUAGE=\"JavaScript\">" + @NewLine +
"<!--" + @NewLine +
" DQ=unescape(\"%22\"); " + @NewLine +
" SQ=unescape(\"%27\"); " + @NewLine +
"//-->" + @NewLine +
"</XCRIPT>" + @NewLine



Put the following code in row-Formula when Row is Categorized

Text := LastName;
StatusText := Title + " " + FirstName + " " + LastName;
Face := "verdana, arial, helvetica";
Size : "2";
Color := #800000;

"{<XCRIPT>" +
"document.write(" +
"\"<A HREF=\"+DQ+document.links{document.links.length-1}+DQ+\"
onmouseover=\"+DQ+\"window.status=(\"+SQ+\""

    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.

+
StatusText +
"\"+SQ+\");return true\"+DQ+\"
onmouseout=\"+DQ+\"window.status=(\"+SQ+SQ+\");return true\"+DQ+\">\")" +
"</XCRIPT>" +
"<FONT FACE=\"" + Face + "\" SIZE=\"" + Size + "\" COLOR=\"" + Color + "\"><B>"
+ Text + "</B></FONT>" +
"</A>}"




Put the following code in row-Formula when Row is NOT Categorized offering a
link to the document.

Path := @ReplaceSubstring( @Subset(@DbName; -1); "\\"; "/");
View := @Subset(@ViewTitle; -1);
DocID := @Text( @DocumentUniqueID) );
Text := TextItemFromDocument;
StatusText := @Ascii(@ReplaceSubstring( Text; "\'" : "\""; "\\\'" : "\\\'" ) );
Face := "verdana, arial, helvetica";
Size : "2";
Color := #000000;

"{<A HREF=\"" + "/" + Path + "/" + View + "/" + DocID + "?OpenDocument\" " +
"onmouseover=\"window.status=(\'" + StatusText + "\'); return true\" " +
"onmouseout=\"window.status=(\'\'); return true\">" +
"<FONT FACE=\"" + Face + "\" SIZE=\"" + Size + "\" COLOR=\"" + Color + "\">" +
Text + "</FONT>" +
"</A>}"

This was first published in November 2000

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.