April 25, 2007, 09:30 AM
<hellonitiv>Fixing The Column Header In Reports.
Do we have any facility in WebFocus using which we can fix the Column Header and making only the data part Scrollable.
April 25, 2007, 10:33 AM
FrankDutchthat's not so easy.
You need to work with a frame.
Build a html page with the headers as flat text and in the frame you get the data.
The disadvantage is that the text in the headers is not dynamic (period, year, country)
and the width of the columns is even less easy to handle.
April 25, 2007, 10:54 AM
<hellonitiv>Yes i know that approach.
But again the issue as rightly pointed by you is related to Static HTM frame and dynamic data column width.
But is there any way left to handle the same in Webfocus itself.
April 25, 2007, 12:05 PM
susannah http://web.tampabay.rr.com/bmerkey/Its all css, doesn't need to be frames (although frames is certainly one way), this site will show you how. fellow Pointer "Trav" showed us all this site.
April 26, 2007, 09:58 AM
gregvHere's what I did using the good stuff from the site susannah gave:
freeze_heading2.css
div#tbl-container {
//width: 96%;
width: expression(document.body.clientWidth-30);
//height: expression(document.body.clientHeight-200);
//height: expression(document.documentElement.clientHeight);
//height: expression(window.innerHeight);
//height: expression(document.body.clientHeight-30); /*500px;*/
overflow: auto;
}
table {
border-collapse: collapse;
background-color: white;
z-index:1
}
td {
border-left: 1px solid black;
//border-top: 1px solid black;
border-top: 1px solid RGB(238 238 238);
padding-right: 1px;
}
td.column_title {
position:relative;
top: expression(document.getElementById("tbl-container").scrollTop-1); /* IE5+ only */
background-color: white;
color: RGB(102 102 102);
border: none;
border-top: 3px solid RGB(238 238 238);
border-bottom: 1px solid RGB(238 238 238);
border-left: 1px solid RGB(238 238 238);
padding-top: 2px;
padding-right: 3px;
padding-left: 3px;
text-align: center;
font-weight: bold;
z-index: 20;
}
TABLE FILE CAR
PRINT DCOST RCOST SALES
BY COUNTRY
BY MODEL
BY CAR
ON TABLE SET PAGE NOLEAD
ON TABLE SET LINES 99999
ON TABLE SET PAGE NOLEAD
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE HOLD AS REPORT FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET CSSURL 'c:\freeze_heading2.css'
ON TABLE SET STYLE *
UNITS=PTS,
LEFTMARGIN=0,
RIGHTMARGIN=0,
TOPMARGIN=0,
BOTTOMMARGIN=0,
SQUEEZE=OFF,
ORIENTATION=LANDSCAPE,
$
TYPE=REPORT,
GRID=ON,
FONT='ARIAL',
SIZE=8,
COLOR='BLACK',
BACKCOLOR='WHITE',
STYLE=NORMAL,
RIGHTGAP=2,
TOPGAP=1,
BOTTOMGAP=1,
$
TYPE=TITLE,
SIZE=10,
STYLE=-UNDERLINE,
CLASS=column_title,
$
ENDSTYLE
END
-HTMLFORM BEGIN
!IBI.FIL.REPORT;
-HTMLFORM END
-RUN
I hope this helps.
Greg
April 26, 2007, 10:02 AM
gregvOne more note: run the above code in a small window to see the scroll bars.
Greg
April 26, 2007, 10:59 AM
TravHere's my post on the topic:
https://forums.informationbuilders.com/eve/forums?s=1651...1026261&f=7971057331Also, I'm presenting this as a session at Summit so you can come to that too.
April 26, 2007, 11:13 AM
FrankDutchTrav
what time?
if it's not on sunday I'll be there
April 26, 2007, 11:20 AM
TravWednesday from 8:30-9:30. It's in the WebFOCUS track.