Focal Point
Fixing The Column Header In Reports.

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/5791080522

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
FrankDutch
that'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.




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

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.




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
April 26, 2007, 09:58 AM
gregv
Here'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



Greg



current client: WF 8.1.05 & 8.2 - Windows 7 64bit - Tomcat 7 - MRE / BID - IE11

local: WF 8.2 - Windows 7 64bit - Tomcat 6 - MRE / BID - FOCUS - IE11

PMF 8
April 26, 2007, 10:02 AM
gregv
One more note: run the above code in a small window to see the scroll bars.

Greg



Greg



current client: WF 8.1.05 & 8.2 - Windows 7 64bit - Tomcat 7 - MRE / BID - IE11

local: WF 8.2 - Windows 7 64bit - Tomcat 6 - MRE / BID - FOCUS - IE11

PMF 8
April 26, 2007, 10:59 AM
Trav
Here's my post on the topic:
https://forums.informationbuilders.com/eve/forums?s=1651...1026261&f=7971057331

Also, I'm presenting this as a session at Summit so you can come to that too. Smiler



Production: 7.6.6 WF Server  <=>  7.6.6 WF Client  <=>  7.6.6 Dev Studio
Testing: <none>
Using MRE & BID.  Connected to MS SQL Server 2005
Output Types: HTML, Excel, PDF
April 26, 2007, 11:13 AM
FrankDutch
Trav

what time?
if it's not on sunday I'll be there




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

April 26, 2007, 11:20 AM
Trav
Wednesday from 8:30-9:30. It's in the WebFOCUS track.



Production: 7.6.6 WF Server  <=>  7.6.6 WF Client  <=>  7.6.6 Dev Studio
Testing: <none>
Using MRE & BID.  Connected to MS SQL Server 2005
Output Types: HTML, Excel, PDF