I have a web page with an embedded categorized view in the center. What I would like to do is put a table with column titles above the embedded view so that users can always see the column titles as they scroll through the view rows. When I enable the scroll bar property in the embedded view, I do not get scroll bars on the web. I am using the default view properties because the applet performance is unacceptable.This would seem like a common requirement, but I am not able to get it done with the default Designer tools.
Any suggestions are appreciated.
Subject: Scrolling on web embedded view
It can’t be done with the default Designer tools. This is not a particular problem with Designer, but with the way HTML tables are handled in the browser. Essentially, it boils down to this: you cannot make one part of a table scrollable and another part fixed (except with a really ugly hack for the most recent versions of IE, then only horizontal scrolling will happen). That means that you need to create two tables – one with the headings and one with the data. Then you have to ensure that the column widths of the two tables match.
The only way you can do that without generating a separate table yourself is to use “Treat contents as HTML” and use a liberal amount of passthru HTML in the view’s column headings. In any case, you will need to use CSS to set the column widths to match.
Subject: RE: Scrolling on web embedded view
Thanks for the help Stan. I love Notes/Domino, but this is one of those things that just kills me. I’ll spend the better part of a day to figure this out (and pull out some hair trying to get it to work on Safari,IE and Firefox). Meanwhile someone else will whip this up in Cold Fusion in 30 minutes.
Subject: RE: Scrolling on web embedded view
Well after you do it once, next time it will take you about 5 minutes.
Subject: Try this for better web views
I have an openNTF project called Domino Web Tools (DWT) that has code for better html web views and outlines. It works in IE and Mozilla based browsers. The header stays locked while the data rows of the view will scroll. It’s all done by reading in the xml domino generates for a view from the ?ReadViewEntries command. If it doesn’t do exactly what you want it may at least give you a good starting point.
You can get the source code here:
http://www.openntf.org/Projects/pmt.nsf/ProjectHome?ReadForm&Query=Domino%20Web%20Tools
And here is an online demo:
http://jackratcliff.com/jratcliff/dwt/dwt-demo.nsf
HTH,
Jack
http://jackratcliff.com
Subject: RE: Try this for better web views
I will definitely take a look at your project on OpenNTF.
Thanks!