Focal Point
[CLOSED] getting column title underline to span width of field

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

June 18, 2009, 01:16 PM
JohnB
[CLOSED] getting column title underline to span width of field
How do you get the column title underline to span the full width of the field if the field is wider than than the column title?

Thank you,

John

This message has been edited. Last edited by: Kerry,


WF 7.7.03, Windows 7, HTML, Excel, PDF
June 18, 2009, 01:22 PM
Francis Mariani
JohnB, it's not possible. Any trickery we come up with will depend on the format of the report - HTML, PDF, EXL2K...


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
June 18, 2009, 01:24 PM
JohnB
It would only be needed for HTML and PDF.


WF 7.7.03, Windows 7, HTML, Excel, PDF
June 18, 2009, 01:38 PM
Doug
Could you get away with this:
TYPE=TITLE, COLUMN=N2,BORDER-BOTTOM=MEDIUM,$
Use "COLUMN=N2" as required.




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
June 18, 2009, 01:40 PM
Francis Mariani
Any solutions people come up with will be quite different for HTML and PDF. For PDF, using CSS styling you may be able to add a border-bottom to the table cells that contain the column titles, but you will require some spacing between each cell or the borders will stick together.

Here is a quick and dirty HTML example:

TABLE FILE CAR
PRINT
*
HEADING
"WEBFOCUS REPORT"
WHERE READLIMIT EQ 100
WHERE RECORDLIMIT EQ 100
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLE *
TYPE=REPORT, GRID=OFF, $
TYPE=TITLE, CLASS=COLTITLE, $
ENDSTYLE

ON TABLE HOLD AS H001 FORMAT HTMTABLE
END
-RUN

-HTMLFORM BEGIN
<HTML>
<HEAD>
<STYLE>
BODY { font-family: Arial, sans-serif; font-size: 12px; }

TD { font-size: 12px; }
U { text-decoration: none; }
.COLTITLE { color: navy; border-bottom: 2px solid navy; }
</STYLE>
</HEAD>
<BODY>
!IBI.FIL.H001;
</BODY>
</HTML>
-HTMLFORM END

The styling for "U" is to remove the text underline that WebFOCUS puts on the column titles.

I don't have a quick solution for PDF, but someone else may have.

This message has been edited. Last edited by: Francis Mariani,


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
June 18, 2009, 01:41 PM
Darin Lee
Somebody's not spending enough time with their "Summary of New Features" manual. Smiler

Here you go. Version 7.6.9 required:
Syntax: How to Extend an Underline to the Entire Report Column
TYPE = TITLE, [COLUMN = colspec,] STYLE = [+|-]EXTUNDERLINE ,$
where:

colspec
Is any valid column specification.

+EXTUNDERLINE
Adds the EXTUNDERLINE option to the inherited text style or specifies a combination of text styles (for example, STYLE=BOLD+UNDERLINE).

-EXTUNDERLINE
Removes the EXTUNDERLINE option from the inherited text style.


Reference: Usage Notes for the EXTUNDERLINE Attribute
HTML format is not supported because the browser calculates the column width and renders the report.
GRID=ON and EXTUNDERLINE are mutually exclusive since the GRID line spans the width of the column. GRID overrides any styling specified for the column title underline.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
June 18, 2009, 01:54 PM
Francis Mariani
Yikes!!! Darin, I've got some reading to do! Sorry John B.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
June 18, 2009, 01:54 PM
Francis Mariani
quote:
Version 7.6.9

Well, I'm on poor old v7.6.5 and JohnB is on v7.6.8.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
June 18, 2009, 01:55 PM
JohnB
Thank you. Hey Francis -- no problem.


WF 7.7.03, Windows 7, HTML, Excel, PDF
June 18, 2009, 02:11 PM
Doug
"Yikes"... Me too "not spending enough time with their 'Summary of New Features' manual"... A lot of catching up... I'm on 764. Of course, different formats as well... "How to Extend an Underline to the Entire Report Column" does not apply to HTML. Does it apply to EXL2K and PDF? I'm hoping so.
June 18, 2009, 04:16 PM
Darin Lee
I realized that this would not help solve the current problem as it would require an upgrade to get the functionality, but I had just read this a couple days ago, so I wanted to make you aware that is is now available. For those on previous version (which sounds like everybody) you'll have to resort to some of that "trickery."


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
June 18, 2009, 04:49 PM
JohnB
A little wait is fine...


WF 7.7.03, Windows 7, HTML, Excel, PDF
June 18, 2009, 05:56 PM
Waz
Does the 7.6.9 New Feature work in 7.6.8 ?

Sometimes these are in existence in previous releases and when IBI is happy gets added to the docco.

Doesn't work in 7.6.6


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

June 19, 2009, 12:18 AM
Francis Mariani
An even more important question, "Does a 7.6.8 new feature work in 7.6.9?" Music


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
June 19, 2009, 04:40 AM
<JG>
It depends, they do seem to have the ability to break an awful lot of things between releases
and even when they issue hotfixes.

7.6.9 Hotfix 1 is still available for download even though it seems it should be called 7.6.9 Breakfix 1.