Show single category view, the next stage

This tip describes how to show a single category view.

If you want to allow a user to pick a single category view on the web, this is by far the easiest way to do it, with finesse.

Define a $$viewtemplate form and embed the view to use. On the web you can use graphics either within the form or outsdie of it in another frame. Use the Domino URL parameter:"openview&RestrictToCategory = " with whatever category you want the link to show. That will pull the view up using the view template form so it's pretty. To finesse it, put the javascript that follows in the header. This code pulls the Location from the browser and strips out the category to show the user what category thety are looking at. For an example, hit www.swexpress.com and click 'shop online' and then choose 'by publisher'.

Hope this helps somebody.

p.s. no purchase necessary :)


 <script language = "JavaScript">
<!-- 
var qs=window.location.href;
var breakhere=qs.indexOf("&RestrictToCategory=")+20;
var mystring=qs.substring(breakhere, qs.length);
var break2=mystring.indexOf("#")
if (break2<1)
{
break2=mystring.length;
}
var mystring2=mystring.substring(0,break2)
var addurl=mystring2.charAt(0)+" to "+mystring2.charAt(mystring2.length-1);
document.writeln("<B><FONT SIZE=2 COLOR='FF0000' FACE='Arial'>"+addurl+"</font></b>");
// -->
</script> 

Dig Deeper on Lotus Notes Domino Administration Tools

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchWindowsServer

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 ...

SearchDataCenter

SearchContentManagement

Close