Web View with "Clickable" Categories and Twisties

Ever wanted a categorized view where the categories themselves are "clickable"? Tired of those ugly twisties? Here

is how to do it.


Put this code in your category columns in the view. This will make the category "clickable".

"[" + "<script>document.write("<a href='"+document.links[document.links.length-1]+"'>" + MyCategoryFieldName + "</a>");</script>" + "]"

Want to get rid of the twisties? Extend the code to look like this.

"[" + "<script>document.write("<a href='"+document.links[document.links.length-1]+"'>" + MyCategoryFieldName + "</a>");" +
"if(document.images[document.images.length-1].src.indexOf("expand.gif") != -1) {" +
"document.images[document.images.length-1].src="/icons/ecblank.gif";}"+
"if(document.images[document.images.length-1].src.indexOf"collapse.gif") != -1){" +
"document.images[document.images.length-1].src="/icons/ecblank.gif";}</script>" + "]"

In this example, the twisties are replaced by the ecblank gif; you could of course use any gif of choice.

This was first published in March 2001

Dig deeper on Lotus Notes Domino Administration Tools

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

SearchWinIT

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchEnterpriseLinux

SearchVirtualDataCentre.co.uk

Close